From: Ben Gras Date: Wed, 30 Jun 2010 12:18:34 +0000 (+0000) Subject: small fixes for pkgsrc by Buccapatnam Tirumala, Gautam. X-Git-Tag: v3.1.8~314 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=098412be8319af555f6abd2807059b45c1f70148;p=minix.git small fixes for pkgsrc by Buccapatnam Tirumala, Gautam. --- 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"