From 098412be8319af555f6abd2807059b45c1f70148 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Wed, 30 Jun 2010 12:18:34 +0000 Subject: [PATCH] small fixes for pkgsrc by Buccapatnam Tirumala, Gautam. --- include/sys/stat.h | 1 + lib/libc/stdtime/localtime.c | 3 +++ 2 files changed, 4 insertions(+) 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" -- 2.44.0