diff --git a/include/sys/stat.h b/include/sys/stat.h index e67580b46..6402bbacf 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -68,6 +68,7 @@ struct stat { #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) /* is a socket */ #define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) /* Function Prototypes. */ _PROTOTYPE( int chmod, (const char *_path, mode_t _mode) ); diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index c059d0140..465fc5f23 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -16,6 +16,9 @@ static char elsieid[] = "@(#)localtime.c 7.99"; /*LINTLIBRARY*/ +/* Gives us offtime, timegm and a few other functions */ +#define STD_INSPIRED + #include "private.h" #include "tzfile.h" #include "fcntl.h"