updates.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 28 Apr 2005 12:59:46 +0000 (12:59 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 28 Apr 2005 12:59:46 +0000 (12:59 +0000)
includes/silcincludes.h.in

index 97ed81c7d4d863b64334d765735fa7aa4ed1b039..de9a23d2374e08b822f630992ece0b93557d566e 100644 (file)
@@ -143,8 +143,10 @@ extern "C" {
 #include <grp.h>
 #include <sys/times.h>
 
-#ifdef HAVE_GETOPT_H
+#if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT)
 #include <getopt.h>
+#else
+#include "getopt.h"
 #endif
 
 #ifdef SOCKS5
@@ -224,10 +226,6 @@ extern "C" {
 
 #endif                         /* !SILC_WIN32 */
 
-#ifndef HAVE_GETOPT_LONG
-#include "getopt.h"
-#endif
-
 /* Include generic SILC type definitions */
 #include "silctypes.h"
 #include "silcversion.h"