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.
This commit is contained in:
jmallett 2002-05-02 05:25:23 +00:00
parent e9426bc22e
commit ccab2ee09e
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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