From 4cd7eec075d5886e9f3b92584b5b89780c4c6790 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 10 Jul 2010 20:49:06 +0000 Subject: [PATCH] This is part of adding getopt() lately but wasn't checked in together with the other changes. git-svn-id: svn://svn.cc65.org/cc65/trunk@4742 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/unistd.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 15c118a8c..2b12ee1dc 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 2003 Ullrich von Bassewitz */ -/* Römerstrasse 52 */ -/* D-70794 Filderstadt */ -/* EMail: uz@cc65.org */ +/* (C) 2003-2010, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -61,6 +61,10 @@ typedef unsigned size_t; typedef long int off_t; #endif +/* Stuff for getopt */ +extern char *optarg; +extern int optind, opterr, optopt; + /*****************************************************************************/ @@ -83,6 +87,7 @@ int __fastcall__ rmdir (const char* name); /* Others */ unsigned __fastcall__ sleep (unsigned seconds); +int __fastcall__ getopt (int argc, char* const* argv, const char* optstring); -- 2.39.5