diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-09 06:36:04 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-09 06:36:04 +0000 |
commit | e10ba4b97a219e87b62d32834bf15ed2e323ed2e (patch) | |
tree | e5bfcb33fa3bdaf8621d938fd9b9e7e34bee291d /source/include/includes.h | |
parent | e789179dfda669bd768720cb3732cf56a49027b5 (diff) | |
download | samba-e10ba4b97a219e87b62d32834bf15ed2e323ed2e.tar.gz samba-e10ba4b97a219e87b62d32834bf15ed2e323ed2e.tar.xz samba-e10ba4b97a219e87b62d32834bf15ed2e323ed2e.zip |
bracket some macros
change MAX_PASSWORD_LENGTH to MAX_PASS_LEN to prevent conflict on some
systems
add #ifdef around soft link dependent code (for systems that don't
have soft links)
Diffstat (limited to 'source/include/includes.h')
-rw-r--r-- | source/include/includes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index 4ca1d4c3b0d..a877f1ffb35 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -1114,15 +1114,15 @@ extern char *sys_errlist[]; #endif #ifndef S_ISREG -#define S_ISREG(x) ((S_IFREG & x)!=0) +#define S_ISREG(x) ((S_IFREG & (x))!=0) #endif #ifndef S_ISDIR -#define S_ISDIR(x) ((S_IFDIR & x)!=0) +#define S_ISDIR(x) ((S_IFDIR & (x))!=0) #endif #if !defined(S_ISLNK) && defined(S_IFLNK) -#define S_ISLNK(x) ((S_IFLNK & x)!=0) +#define S_ISLNK(x) ((S_IFLNK & (x))!=0) #endif #ifdef UFC_CRYPT @@ -1202,7 +1202,7 @@ it works and getting lots of bug reports */ /* this is a rough check to see if this machine has a lstat() call. it is not guaranteed to work */ -#if !(defined(S_ISLNK) || defined(S_IFLNK)) +#if !defined(S_ISLNK) #define lstat stat #endif |