Changeset 2376


Ignore:
Timestamp:
2001-05-07T16:59:06+12:00 (23 years ago)
Author:
jrm21
Message:

modified to get getopt() prototype from system headers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/getopt.h

    r855 r2376  
    9595#define required_argument   1
    9696#define optional_argument   2
     97  /* greenstone... */
     98#include "config.h"
    9799
    98100#if __STDC__
     101#if defined(HAVE_UNISTD_H)
     102#include <unistd.h>
     103#else /* no unistd.h */
    99104#if defined(__GNU_LIBRARY__)
    100105/* Many other libraries have conflicting prototypes for getopt, with
     
    116121                   const struct option *longopts, int *longind,
    117122                   int long_only);
     123#endif  /* ! HAVE_UNISTD_H */
    118124#else               /* not __STDC__ */
    119125  extern int getopt ();
Note: See TracChangeset for help on using the changeset viewer.