try to fix sun
diff --git a/src/cmd/postscript/common/common.h b/src/cmd/postscript/common/common.h
index 7b26766..f49f6f1 100644
--- a/src/cmd/postscript/common/common.h
+++ b/src/cmd/postscript/common/common.h
@@ -45,3 +45,4 @@
void pagelist(char *);
int safe_tmpnam(char*);
+
diff --git a/src/cmd/postscript/common/ext.h b/src/cmd/postscript/common/ext.h
index 86b98da..77635b6 100644
--- a/src/cmd/postscript/common/ext.h
+++ b/src/cmd/postscript/common/ext.h
@@ -24,6 +24,8 @@
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 018885f..ae805be 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 1006b25..fa1d988 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 */