diff options
author | steve <steve@FreeBSD.org> | 1998-06-06 18:52:43 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-06-06 18:52:43 +0000 |
commit | e6bc8c123a9561a257efb1124bedb4eabaf2457c (patch) | |
tree | 9d0de63b46df4f705147f8b2c683b7f0724ff038 /lib/libc/gen/semctl.c | |
parent | a35a8e64596aad74533c79edcdac57955463e953 (diff) | |
download | FreeBSD-src-e6bc8c123a9561a257efb1124bedb4eabaf2457c.zip FreeBSD-src-e6bc8c123a9561a257efb1124bedb4eabaf2457c.tar.gz |
Fix this so that it compiles in the !__STDC__ case.
Also be consistent about usage of #if ...
Pointed out by: bde
Diffstat (limited to 'lib/libc/gen/semctl.c')
-rw-r--r-- | lib/libc/gen/semctl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/semctl.c b/lib/libc/gen/semctl.c index 96a8626..03ecdbc 100644 --- a/lib/libc/gen/semctl.c +++ b/lib/libc/gen/semctl.c @@ -1,7 +1,11 @@ #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> +#if __STDC__ #include <stdarg.h> +#else +#include <varargs.h> +#endif #include <stdlib.h> #if __STDC__ @@ -16,7 +20,7 @@ int semctl(semid, semnum, cmd, va_alist) va_list ap; union semun semun; union semun *semun_ptr; -#ifdef __STDC__ +#if __STDC__ va_start(ap, cmd); #else va_start(ap); |