Don't compile getopt*.c if the system provides getopt_long().
[oweals/tinc.git] / src / tincd.c
index ed0cee9374253e756cca5fa301c19a98e6e0d1ed..db18dc576cce9e4f7a68c8f3fded6eb466ce96bd 100644 (file)
 #include <time.h>
 #endif
 
+#ifdef HAVE_GETOPT_LONG
 #include <getopt.h>
+#else
+#include "getopt.h"
+#endif
+
 #include "pidfile.h"
 
 #include "conf.h"