summary refs log tree commit diff
path: root/sysvipc/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sysvipc/sys')
-rw-r--r--sysvipc/sys/sem.h4
-rw-r--r--sysvipc/sys/shm.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/sysvipc/sys/sem.h b/sysvipc/sys/sem.h
index 9657a14bfe..578a0a47a3 100644
--- a/sysvipc/sys/sem.h
+++ b/sysvipc/sys/sem.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
 /* Structure used for argument to `semop' to describe operations.  */
 struct sembuf
 {
-  short int sem_num;		/* semaphore number */
+  unsigned short int sem_num;	/* semaphore number */
   short int sem_op;		/* semaphore operation */
   short int sem_flg;		/* operation flag */
 };
diff --git a/sysvipc/sys/shm.h b/sysvipc/sys/shm.h
index 4f30ad8f92..8622f82dca 100644
--- a/sysvipc/sys/shm.h
+++ b/sysvipc/sys/shm.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -30,6 +30,10 @@
 /* Get system dependent definition of `struct shmid_ds' and more.  */
 #include <bits/shm.h>
 
+/* Define types required by the standard.  */
+#define __need_time_t
+#include <time.h>
+
 
 /* Segment low boundary address multiple.  */
 #define SHMLBA		(__getpagesize ())