diff options
| author | David Nugent <davidn@FreeBSD.org> | 2000-01-15 00:20:22 +0000 |
|---|---|---|
| committer | David Nugent <davidn@FreeBSD.org> | 2000-01-15 00:20:22 +0000 |
| commit | da87ee1ae0616b15fe67ba63856af79803005d9d (patch) | |
| tree | 8eb325bf87e8b3547c41712d05ed71ac0def85c8 /pw/pw.c | |
| parent | 689e59177079bab25bc22ccf4c0e9a3954e8306b (diff) | |
| download | pw-darwin-da87ee1ae0616b15fe67ba63856af79803005d9d.tar.gz pw-darwin-da87ee1ae0616b15fe67ba63856af79803005d9d.zip | |
Portability fixes for other bsd4.4 derivatives.
Diffstat (limited to 'pw/pw.c')
| -rw-r--r-- | pw/pw.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -35,6 +35,9 @@ static const char rcsid[] = #include <sys/wait.h> #include "pw.h" +#if !defined(_PATH_YP) +#define _PATH_YP "/var/yp/" +#endif const char *Modes[] = { "add", "del", "mod", "show", "next", NULL}; @@ -181,7 +184,7 @@ main(int argc, char *argv[]) while ((ch = getopt(argc, argv, opts[which][mode])) != -1) { if (ch == '?') - errx(EX_USAGE, NULL); + errx(EX_USAGE, "unknown switch"); else addarg(&arglist, ch, optarg); optarg = NULL; |
