Seems BSDish __P() and __CONCAT() macros was expected here but without any

explicit include of sys/cdefs.h.
Now (re?)defined there, to keep non-POSIX public headers requirement level low.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7582 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2004-05-14 21:08:09 +00:00
parent faff14df52
commit f81d740a6e
2 changed files with 13 additions and 0 deletions

View File

@ -55,6 +55,15 @@
#include "keywords.h"
#ifndef __P
#define __P(s) s
#endif
#ifndef __CONCAT
#define __CONCAT(x,y) x ## y
#endif
// phoudoin, 20031026: FIXME: sysctl.h is a kernel private header!
extern int sysctl(int *, uint, void *, size_t *, void *, size_t);

View File

@ -52,6 +52,10 @@
#include <string.h>
#include <unistd.h>
#ifndef __P
#define __P(s) s
#endif
// phoudoin, 20031026: FIXME: sysctl.h is a kernel private header!
extern int sysctl(int *, uint, void *, size_t *, void *, size_t);