Re: [patch] scrub non-__GLIBC__ checks in linux/socket.h and linux/stat.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: H. Peter Anvin
Date: Wednesday, January 24, 2007 - 11:30 pm

Erik Andersen wrote:

klibc uses these definitions, but the right thing to do is to have libc 
ask for it:

#if defined(__KERNEL__) || defined(__EXPORT_LINUX_SOCKET_H)

/* ... */

#endif

That way, klibc can just

#define __EXPORT_LINUX_SOCKET_H
#include <linux/socket.h>

	-hpa
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch] scrub non-__GLIBC__ checks in linux/socket.h a ..., H. Peter Anvin, (Wed Jan 24, 11:30 pm)