From f81d740a6e4afb8da2b5506b45fb43da220a6e4e Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Fri, 14 May 2004 21:08:09 +0000 Subject: [PATCH] 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 --- src/apps/bin/route/route.c | 9 +++++++++ src/apps/bin/route/show.c | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/src/apps/bin/route/route.c b/src/apps/bin/route/route.c index 163d9c41e3..41b2dbc678 100644 --- a/src/apps/bin/route/route.c +++ b/src/apps/bin/route/route.c @@ -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); diff --git a/src/apps/bin/route/show.c b/src/apps/bin/route/show.c index 417b3b8918..7bc402b29c 100644 --- a/src/apps/bin/route/show.c +++ b/src/apps/bin/route/show.c @@ -52,6 +52,10 @@ #include #include +#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);