| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2009.11.02 08:22 "Re: Tiffcrop warnings", by Juergen BuchmuellerOn Sun, 01 Nov 2009 22:30:34 -0500
Edward Lam <edward@sidefx.com> wrote:
> Not sure which Unix platforms don't have unistd.h with
> getopt()/optind though. :)
FWIW here's the condition for NetBSD when to include the declarations
in unistd.h
/*
* IEEE Std 1003.2-92, adopted in X/Open Portability Guide
* Issue 4 and later
*/
#if (_POSIX_C_SOURCE - 0) >= 2 || defined(_XOPEN_SOURCE) || \
defined(_NETBSD_SOURCE)
int getopt(int, char * const [], const char *);
extern char *optarg; /* getopt(3) external variables */
extern int opterr;
extern int optind;
extern int optopt;
#endif
So it looks like you'll have to define _POSIX_C_SOURCE=2 or
_XOPEN_SOURCE to get the defines.
Juergen
|
|||||||