Build fix for glibc 2.2
Andreas Jaeger
aj@suse.de
Fri Feb 25 05:40:00 GMT 2000
I got the following errors with the current glibc 2.2 CVS version:
In file included from ../sysvipc/sys/msg.h:28,
from ../include/sys/msg.h:1,
from ../sysdeps/unix/sysv/linux/msgsnd.c:21:
../sysdeps/unix/sysv/linux/bits/msq.h:50: parse error before `pid_t'
../sysdeps/unix/sysv/linux/bits/msq.h:50: warning: no semicolon at end of struct or union
../sysdeps/unix/sysv/linux/bits/msq.h:51: warning: type defaults to `int' in declaration of `msg_lrpid'
../sysdeps/unix/sysv/linux/bits/msq.h:51: warning: data definition has no type or storage class
../sysdeps/unix/sysv/linux/bits/msq.h:54: parse error before `}'
make[2]: *** [/usr/src/build-glibc/20000102-main/sysvipc/msgsnd.o] Error 1
The appended patch fixes this for me.
Andreas
2000-02-25 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/bits/msq.h (struct msqid_ds): Use
__pid_t.
============================================================
Index: sysdeps/unix/sysv/linux/bits/msq.h
--- sysdeps/unix/sysv/linux/bits/msq.h 2000/02/25 08:57:24 1.8
+++ sysdeps/unix/sysv/linux/bits/msq.h 2000/02/25 12:30:10
@@ -47,8 +47,8 @@
unsigned long int __msg_cbytes; /* current number of bytes on queue */
msgqnum_t msg_qnum; /* number of messages currently on queue */
msglen_t msg_qbytes; /* max number of bytes allowed on queue */
- pid_t msg_lspid; /* pid of last msgsnd() */
- pid_t msg_lrpid; /* pid of last msgrcv() */
+ __pid_t msg_lspid; /* pid of last msgsnd() */
+ __pid_t msg_lrpid; /* pid of last msgrcv() */
unsigned long int __unused4;
unsigned long int __unused5;
};
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de
More information about the Libc-hacker
mailing list