From 9d6d3fcf5fe8308cd020cecf89dede440346f8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 13 Dec 2006 13:06:42 +0000 Subject: [PATCH] Some tweaks, made libutil a bit more complete. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19487 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/compatibility/bsd/err.h | 2 -- headers/compatibility/bsd/libutil.h | 1 + headers/compatibility/bsd/sys/cdefs.h | 3 +++ src/libs/util/Jamfile | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/headers/compatibility/bsd/err.h b/headers/compatibility/bsd/err.h index 39649bd5c8..1f0ff6fbe5 100644 --- a/headers/compatibility/bsd/err.h +++ b/headers/compatibility/bsd/err.h @@ -49,8 +49,6 @@ #include #define __dead2 -#define __printflike(a, b) -#define __printf0like(a, b) #define __va_list va_list __BEGIN_DECLS diff --git a/headers/compatibility/bsd/libutil.h b/headers/compatibility/bsd/libutil.h index ec18040f4b..1e2fb73f70 100644 --- a/headers/compatibility/bsd/libutil.h +++ b/headers/compatibility/bsd/libutil.h @@ -40,6 +40,7 @@ #define _LIBUTIL_H_ #include +#include #define PROPERTY_MAX_NAME 64 #define PROPERTY_MAX_VALUE 512 diff --git a/headers/compatibility/bsd/sys/cdefs.h b/headers/compatibility/bsd/sys/cdefs.h index 2438fba662..cfbf31b54d 100644 --- a/headers/compatibility/bsd/sys/cdefs.h +++ b/headers/compatibility/bsd/sys/cdefs.h @@ -13,4 +13,7 @@ #define __unused #define protected +#define __printflike(a, b) __attribute__ ((format (__printf__, (a), (b)))) +#define __printf0like(a, b) + #endif /* _BSD_SYS_CDEFS_H_ */ diff --git a/src/libs/util/Jamfile b/src/libs/util/Jamfile index 88f5dcfcea..22a89b2866 100644 --- a/src/libs/util/Jamfile +++ b/src/libs/util/Jamfile @@ -9,5 +9,7 @@ SubDirCcFlags $(defines) ; StaticLibrary libutil.a : fparseln.c + realhostname.c + trimdomain.c ;