diff options
author | rsc <devnull@localhost> | 2005-01-14 18:38:20 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-14 18:38:20 +0000 |
commit | 7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8 (patch) | |
tree | 238e72739d8214a197081ee84f4a641e1965b7b7 /src/cmd | |
parent | 147e5e8702764582111967582c26190cd77b937e (diff) | |
download | plan9port-7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8.tar.gz plan9port-7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8.tar.bz2 plan9port-7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8.zip |
try to fix sun
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/postscript/common/common.h | 1 | ||||
-rw-r--r-- | src/cmd/postscript/common/ext.h | 2 | ||||
-rw-r--r-- | src/cmd/postscript/common/getopt.c | 1 | ||||
-rw-r--r-- | src/cmd/postscript/download/download.c | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/postscript/common/common.h b/src/cmd/postscript/common/common.h index 7b267668..f49f6f1f 100644 --- a/src/cmd/postscript/common/common.h +++ b/src/cmd/postscript/common/common.h @@ -45,3 +45,4 @@ void *galloc(void *, int, char *); void pagelist(char *); int safe_tmpnam(char*); + diff --git a/src/cmd/postscript/common/ext.h b/src/cmd/postscript/common/ext.h index 86b98da5..77635b6b 100644 --- a/src/cmd/postscript/common/ext.h +++ b/src/cmd/postscript/common/ext.h @@ -24,6 +24,8 @@ extern double pagewidth; extern int reading; /* input */ extern int writing; /* and output encoding */ +#define getopt ps_getopt +int getopt(int, char**, char*); extern char *optarg; /* for getopt() */ extern int optind; diff --git a/src/cmd/postscript/common/getopt.c b/src/cmd/postscript/common/getopt.c index 018885f7..ae805bef 100644 --- a/src/cmd/postscript/common/getopt.c +++ b/src/cmd/postscript/common/getopt.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include "ext.h" #define ERR(str, chr) if(opterr){fprintf(stderr, "%s%s%c\n", argv[0], str, chr);} int opterr = 1; int optind = 1; diff --git a/src/cmd/postscript/download/download.c b/src/cmd/postscript/download/download.c index 1006b255..fa1d9882 100644 --- a/src/cmd/postscript/download/download.c +++ b/src/cmd/postscript/download/download.c @@ -63,6 +63,7 @@ #include <unistd.h> #include <libc.h> +#include "../common/ext.h" #include "comments.h" /* PostScript file structuring comments */ #include "gen.h" /* general purpose definitions */ #include "path.h" /* for temporary directory */ |