diff --git a/BUILD.gn b/BUILD.gn index b052e13395e81c881192f8d6bb006f4804668b7e..d35369a4a914a3ab114005181df3466264754ada 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -10,7 +10,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import("//build/lite/config/component/lite_component.gni") import("//build/lite/ndk/ndk.gni") lite_component("samgr") { diff --git a/samgr_endpoint/BUILD.gn b/samgr_endpoint/BUILD.gn index 9d7cbcc751f581d67eb0bef5593cc9c3c5a7be28..83faf4c102753053be63bf7bb7bf6c891e729952 100644 --- a/samgr_endpoint/BUILD.gn +++ b/samgr_endpoint/BUILD.gn @@ -45,6 +45,8 @@ source_set("endpoint_source") { "_GNU_SOURCE", "LITE_LINUX_BINDER_IPC", ] + } else { + defines = [ "_GNU_SOURCE" ] } configs += [ ":endpoint_internal" ]