diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-05 12:53:52 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-09-05 12:53:52 +0800 |
commit | 078b255969c6b768f2c85c35a580feadf5774f31 (patch) | |
tree | 2acd396f4b0b07e22d378c33dbd54d4d8f92f81c /include | |
parent | 24b3e689cf6429d6a09ce8910d6b1735879bfdf4 (diff) | |
parent | dcf78b3ca3ff11ff35ec376bfc3fbff6923e154e (diff) | |
download | pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar.gz pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar.bz2 pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar.lz pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar.xz pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.tar.zst pttbbs-078b255969c6b768f2c85c35a580feadf5774f31.zip |
remove branch victor.screen
add branch victor.solaris with some modification
git-svn-id: http://opensvn.csie.org/pttbbs/branches/victor.solaris@2180 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/bbs.h | 27 | ||||
-rw-r--r-- | include/proto.h | 2 |
2 files changed, 26 insertions, 3 deletions
diff --git a/include/bbs.h b/include/bbs.h index 45ca1292..81ed235e 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -42,8 +42,8 @@ #include <machine/limits.h> #endif #include <machine/param.h> -#endif -#ifdef __linux__ + +#elif defined(__linux__) #include <sys/param.h> #include <sys/ioctl.h> #include <limits.h> @@ -54,6 +54,29 @@ size_t strlcat(char *dst, const char *src, size_t size); + +#elif defined(Solaris) + +#include <alloca.h> +#include <crypt.h> +#include <sys/param.h> +#include <sys/ioctl.h> +#include <limits.h> +#include <strings.h> /* for strcasecmp() */ + +#define LOCK_EX 1 +#define LOCK_UN 2 + +int flock(int, int); + +void unsetenv(char *name); + +int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const void *, const void *)); +int alphasort(const void *d1, const void *d2); + + +#else +#warning "Unknown OSTYPE" #endif /* our header */ diff --git a/include/proto.h b/include/proto.h index 0d66649f..ab56650a 100644 --- a/include/proto.h +++ b/include/proto.h @@ -377,7 +377,7 @@ char *completeutmp_getname(int where); /* osdep */ int cpuload(char *str); double swapused(int *total, int *used); -#ifdef __linux__ +#if defined(__linux__) || defined(Solaris) char *strcasestr(const char *big, const char *little); #endif |