AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.10.29 17:43 "Re: Tiff Digest, Vol 65, Issue 9", by Richard Nolde
2009.10.29 18:08 "Re: Tiff Digest, Vol 65, Issue 9", by Bob Friesenhahn
2009.10.30 04:18 "Tiffcrop warnings", by Richard Nolde
2009.11.01 18:49 "Re: Tiffcrop warnings", by Edward Lam
2009.11.02 00:15 "Re: Tiffcrop warnings", by Richard Nolde
2009.11.02 03:30 "Re: Tiffcrop warnings", by Edward Lam
2009.11.02 04:03 "Re: Tiffcrop warnings", by Bob Friesenhahn
2009.11.02 08:22 "Re: Tiffcrop warnings", by Juergen Buchmueller
2009.10.29 18:21 "Re: Tiff Digest, Vol 65, Issue 9", by Toby Thain

2009.11.02 08:22 "Re: Tiffcrop warnings", by Juergen Buchmueller

On 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