ttry to fix sun - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 7ea6c4fcbedc5a8039ed91a4a5d77d7366109cd8
 (DIR) parent 147e5e8702764582111967582c26190cd77b937e
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri, 14 Jan 2005 18:38:20 +0000
       
       ttry to fix sun
       
       Diffstat:
         M src/cmd/postscript/common/common.h  |       1 +
         M src/cmd/postscript/common/ext.h     |       2 ++
         M src/cmd/postscript/common/getopt.c  |       1 +
         M src/cmd/postscript/download/downlo… |       1 +
       
       4 files changed, 5 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/postscript/common/common.h b/src/cmd/postscript/common/common.h
       t@@ -45,3 +45,4 @@ void *galloc(void *, int, char *);
        void pagelist(char *);
        
        int safe_tmpnam(char*);
       +
 (DIR) diff --git a/src/cmd/postscript/common/ext.h b/src/cmd/postscript/common/ext.h
       t@@ -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;
        
 (DIR) diff --git a/src/cmd/postscript/common/getopt.c b/src/cmd/postscript/common/getopt.c
       t@@ -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;
 (DIR) diff --git a/src/cmd/postscript/download/download.c b/src/cmd/postscript/download/download.c
       t@@ -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 */