mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
try to fix sun
This commit is contained in:
parent
147e5e8702
commit
7ea6c4fcbe
4 changed files with 5 additions and 0 deletions
|
@ -45,3 +45,4 @@ void *galloc(void *, int, char *);
|
|||
void pagelist(char *);
|
||||
|
||||
int safe_tmpnam(char*);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue