Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-h.b-one.net (mx-h.one.com [91.198.169.55])
	by mail9.b-one.net (Postfix) with ESMTP id E74E4400164
	for <info@awaresystems.be>; Mon,  2 Nov 2009 10:24:56 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-h.b-one.net (Postfix) with ESMTP id 7755B187D29B
	for <info@awaresystems.be>; Mon,  2 Nov 2009 10:24:55 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 1D5561D18E0A0;
	Mon,  2 Nov 2009 04:23:32 -0500 (EST)
Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82])
	by lists.maptools.org (Postfix) with ESMTP id AE19F1D334705
	for <tiff@lists.maptools.org>; Mon,  2 Nov 2009 03:23:17 -0500 (EST)
Received: from fwd02.aul.t-online.de by mailout05.t-online.de with smtp 
	id 1N4sBx-0007dB-00; Mon, 02 Nov 2009 09:23:09 +0100
Received: from nbsd
	(GtWng+ZJZhORV3CAxSDGo4sFOkalYVAR0hModtr2xbgOiv0SEaQAp4-kdFe6LcRZLJ@[91.55.125.46])
	by fwd02.t-online.de
	with esmtp id 1N4sBX-16f08O0; Mon, 2 Nov 2009 09:22:43 +0100
Date: Mon, 2 Nov 2009 09:22:40 +0100
From: Juergen Buchmueller <pullmoll@t-online.de>
To: tiff@lists.maptools.org
Message-Id: <20091102092240.e1180829.pullmoll@t-online.de>
In-Reply-To: <4AEE525A.6020202@sidefx.com>
References: <mailman.7.1256835602.18446.tiff@lists.maptools.org>
	<4AE9D44C.5010807@cybox.com>
	<alpine.GSO.2.01.0910291302380.1964@freddy.simplesystems.org>
	<4AEA691D.5040809@cybox.com>
	<54445.99.237.216.211.1257101386.squirrel@www.sidefx.com>
	<4AEE24B9.2000004@cybox.com> <4AEE525A.6020202@sidefx.com>
X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64--netbsd)
Mime-Version: 1.0
X-ID: GtWng+ZJZhORV3CAxSDGo4sFOkalYVAR0hModtr2xbgOiv0SEaQAp4-kdFe6LcRZLJ
X-TOI-MSGID: f85c1aa6-8f16-4f42-ad54-bcb965db9c5b
Subject: Re: [Tiff] Tiffcrop warnings
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

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
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
