]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't use getopt from libbsd
authorVincent Bernat <vincent@bernat.im>
Sun, 13 Dec 2015 08:03:13 +0000 (09:03 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 13 Dec 2015 08:03:13 +0000 (09:03 +0100)
The GNU one is perfectly fine.

src/compat/compat.h

index 982f9f1bfdbdb0034b53b45ea83028dba8caba46..027e64811e3ac81b12b3250bd9712c5a688dd3c5 100644 (file)
@@ -43,6 +43,8 @@
 #include <string.h>
 #include <unistd.h>
 
+#undef getopt
+
 #if !HAVE_ASPRINTF
 int vasprintf(char **, const char *, va_list) __attribute__ ((format (printf, 2, 0)));
 int asprintf (char **, const char *, ...) __attribute__ ((format (printf, 2, 3)));