]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: remove android-nl.c with unneeded workaround
authorFilipe Brandenburger <filbranden@google.com>
Thu, 30 Jul 2015 21:35:15 +0000 (14:35 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Aug 2015 08:58:52 +0000 (10:58 +0200)
The workaround might have been necessary in the past, however now it
produces the following error:

  .../libnl.a(attr.o): multiple definition of 'nla_put_flag'
  .../android-nl.o: previous definition here
  collect2: error: ld returned 1 exit status

TEST=Built AOSP tree with this patchset, tested the generated iw binary.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Android.mk
android-nl.c [deleted file]

index 03bcc3e93d4df42fa63e85d6203369a576665a53..4a50f89932a0e3797912fccefae651ef9b41b02f 100644 (file)
@@ -7,7 +7,7 @@ IW_ANDROID_BUILD=y
 NO_PKG_CONFIG=y
 include $(LOCAL_PATH)/Makefile
 
-LOCAL_SRC_FILES := $(patsubst %.o,%.c,$(OBJS)) android-nl.c
+LOCAL_SRC_FILES := $(patsubst %.o,%.c,$(OBJS))
 
 LOCAL_CFLAGS += -DCONFIG_LIBNL20
 LOCAL_LDFLAGS := -Wl,--no-gc-sections
diff --git a/android-nl.c b/android-nl.c
deleted file mode 100644 (file)
index d216f5f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#include <netlink/attr.h>
-
-int nla_put_flag(struct nl_msg *msg, int flag)
-{
-       return nla_put(msg, flag, 0, NULL);
-}