From 04c7a25640ae00136ba33177f375d7bfaa755a49 Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 8 Apr 2013 08:32:54 +0200 Subject: Solved link errors in libXau --- libXau/AuFileName.c | 3 +++ libXau/AuUnlock.c | 3 +++ libXau/config.h | 7 +++++++ libXau/makefile | 2 ++ 4 files changed, 15 insertions(+) create mode 100644 libXau/config.h diff --git a/libXau/AuFileName.c b/libXau/AuFileName.c index 090427387..93335bc0f 100644 --- a/libXau/AuFileName.c +++ b/libXau/AuFileName.c @@ -30,6 +30,9 @@ in this Software without prior written authorization from The Open Group. #include #include #include +#ifdef HAVE_UNISTD_H +# include +#endif static char *buf = NULL; diff --git a/libXau/AuUnlock.c b/libXau/AuUnlock.c index b81724600..7a0c3a881 100644 --- a/libXau/AuUnlock.c +++ b/libXau/AuUnlock.c @@ -27,6 +27,9 @@ in this Software without prior written authorization from The Open Group. #ifdef HAVE_CONFIG_H #include #endif +#ifdef HAVE_UNISTD_H +# include +#endif #include #include diff --git a/libXau/config.h b/libXau/config.h new file mode 100644 index 000000000..8ce6cdc96 --- /dev/null +++ b/libXau/config.h @@ -0,0 +1,7 @@ +#ifndef __COFNIG_H__ +#define __COFNIG_H__ + +#define HAVE_UNISTD_H 1 + +#endif + diff --git a/libXau/makefile b/libXau/makefile index 0840e2647..2d56f2ac8 100644 --- a/libXau/makefile +++ b/libXau/makefile @@ -1,5 +1,7 @@ SHAREDLIB = libXau +DEFINES += HAVE_CONFIG_H + CSRCS = AuDispose.c \ AuFileName.c \ AuGetAddr.c \ -- cgit v1.2.3