]> git.mxchange.org Git - flightgear.git/commitdiff
Patch to fix Solaris function name contention with "getopt()" -
authorcurt <curt>
Mon, 16 Mar 1998 21:13:07 +0000 (21:13 +0000)
committercurt <curt>
Mon, 16 Mar 1998 21:13:07 +0000 (21:13 +0000)
johns@ultra2.cs.umr.edu (John Stone)

Main/fg_getopt.c

index 2277e1271e55e2a4398f32ddb929e02e08db37b4..18ad92b4d3632bac3e3246e123afc131d48694c9 100644 (file)
@@ -55,7 +55,7 @@ char    *nextchar   =   NULL;       /* Pointer to next character        */
 #define IS_NOT_SWITCH_CHAR(c)   (c != '-')
 #endif
 
-int getopt(int argc,char **argv,char *format,char **argument)
+int fg_getopt(int argc,char **argv,char *format,char **argument)
 /****************************************************************************
 *
 * Function:     getopt
@@ -293,7 +293,7 @@ int getargs( int argc,char
     cmdstr[opt] = '\0';
 
     while (true) {
-        opt = getopt(argc,argv,cmdstr,&argument);
+        opt = fg_getopt(argc,argv,cmdstr,&argument);
         switch (opt) {
             case 'H':
             case 'h':
@@ -359,7 +359,11 @@ void print_desc(int num_opt,Option **optarr)
 
 
 /* $Log$
-/* Revision 1.1  1998/02/13 00:23:40  curt
-/* Initial revision.
+/* Revision 1.2  1998/03/16 21:13:07  curt
+/* Patch to fix Solaris function name contention with "getopt()" -
+/* johns@ultra2.cs.umr.edu (John Stone)
 /*
+ * Revision 1.1  1998/02/13 00:23:40  curt
+ * Initial revision.
+ *
  */