]> granicus.if.org Git - graphviz/commitdiff
Fix our definition of getopt() to be used only if HAVE_GETOPT_DECL
authorerg <devnull@localhost>
Mon, 25 Jun 2007 18:34:23 +0000 (18:34 +0000)
committererg <devnull@localhost>
Mon, 25 Jun 2007 18:34:23 +0000 (18:34 +0000)
is not defined, not just if getopt.h is missing.

lib/ingraphs/ingraphs.c

index 37aed1993a68a0b8538923d06f160a7a02bc7e95..75504b06ce1d44748d13424ab06b0728873e140c 100644 (file)
@@ -190,7 +190,7 @@ char *fileName(ingraph_state * sp)
 #include "config.h"
 #endif
 
-#ifndef HAVE_GETOPT_H
+#ifndef HAVE_GETOPT_DECL
 /*
 public domain AT&T getopt source
 */