diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-02 05:25:23 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-02 05:25:23 +0000 |
commit | ccab2ee09e41868aafd6b09a67ef54896bd4f032 (patch) | |
tree | 50878f5c729007c44be0cbc76e026fa5bd3ba656 /usr.bin/m4 | |
parent | e9426bc22e9fbe2baa1a0844b4f8103a1a1e9e03 (diff) | |
download | FreeBSD-src-ccab2ee09e41868aafd6b09a67ef54896bd4f032.zip FreeBSD-src-ccab2ee09e41868aafd6b09a67ef54896bd4f032.tar.gz |
Remove redundant declarations of getopt(3) externals (since <unistd.h> does
take care of them), and add __FreeBSD__ to the defined() checks for the
_PATH_DIVNAME.
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/main.c | 3 | ||||
-rw-r--r-- | usr.bin/m4/pathnames.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c index b97b21a..ca01cb0 100644 --- a/usr.bin/m4/main.c +++ b/usr.bin/m4/main.c @@ -146,9 +146,6 @@ struct keyblk keywrds[] = { /* m4 keywords to be installed */ #define MAXKEYS (sizeof(keywrds)/sizeof(struct keyblk)) -extern int optind; -extern char *optarg; - #define MAXRECORD 50 static struct position { char *name; diff --git a/usr.bin/m4/pathnames.h b/usr.bin/m4/pathnames.h index 043190c..94e8164 100644 --- a/usr.bin/m4/pathnames.h +++ b/usr.bin/m4/pathnames.h @@ -50,7 +50,8 @@ #define UNIQUE 3 /* unique char location */ #endif -#if defined(unix) || defined(__NetBSD__) || defined(__OpenBSD__) +#if defined(unix) || defined(__FreeBSD__) || defined(__NetBSD__) || \ + defined(__OpenBSD__) #define _PATH_DIVNAME "/tmp/m4.0XXXXXXXXXX" /* unix diversion files */ #define UNIQUE 8 /* unique char location */ #endif |