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