diff options
| author | Steve Price <steve@FreeBSD.org> | 1998-06-06 18:52:43 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1998-06-06 18:52:43 +0000 |
| commit | e110cb41dda8fd62a75ab9ced9ea2dae80c45c58 (patch) | |
| tree | 61ead7f06f136c9a4c68ec20fbee7d0771882d98 /lib/libc | |
| parent | 810e1311d2b43d4c6d3b80648a8b2ea81628b5eb (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -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 96a86269f6e1..03ecdbc8ce6e 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); |
