diff --git a/.cvsignore b/.cvsignore index d31d286..9235365 100644 --- a/.cvsignore +++ b/.cvsignore @@ -5,3 +5,4 @@ ne2k.raw ne2k.txt snapshot.txt +ne2k-pktlog.txt diff --git a/src/include/stdio.h b/src/include/stdio.h index 5de3754..cf19c8d 100644 --- a/src/include/stdio.h +++ b/src/include/stdio.h @@ -67,6 +67,8 @@ /**** Proper LIBC Stuff ****/ +typedef __off_t fpos_t; + extern __const int sys_nerr; extern __const char *__const sys_errlist[]; diff --git a/src/include/unistd.h b/src/include/unistd.h index 857b1c3..23e4de3 100644 --- a/src/include/unistd.h +++ b/src/include/unistd.h @@ -37,6 +37,17 @@ ssize_t write(int, const void *, size_t); off_t lseek(int, off_t, int); +#ifndef _GID_T_DECLARED +typedef __gid_t gid_t; +#define _GID_T_DECLARED +#endif + + +#ifndef _UID_T_DECLARED +typedef __uid_t uid_t; +#define _UID_T_DECLARED +#endif + /**** END ****/ diff --git a/src/lib/libc_old/stdlib/getopt.c b/src/lib/libc_old/stdlib/getopt.c index 835eac0..3f98da5 100644 --- a/src/lib/libc_old/stdlib/getopt.c +++ b/src/lib/libc_old/stdlib/getopt.c @@ -55,7 +55,7 @@ if (*place == 0) ++optind; if (opterr && *ostr != ':') { - printf("%s: illegal option -- %c\n",_getprogname(),optopt); + printf("%s: illegal option -- %c\n","BUG",optopt); /* (void)fprintf(stderr, "%s: illegal option -- %c\n", _getprogname(),