aboutsummaryrefslogtreecommitdiff
path: root/libXau
diff options
context:
space:
mode:
Diffstat (limited to 'libXau')
-rw-r--r--libXau/AuFileName.c3
-rw-r--r--libXau/AuUnlock.c3
-rw-r--r--libXau/config.h7
-rw-r--r--libXau/libXau.def10
-rw-r--r--libXau/makefile13
5 files changed, 36 insertions, 0 deletions
diff --git a/libXau/AuFileName.c b/libXau/AuFileName.c
index 37c8b6283..69b0ec4ee 100644
--- a/libXau/AuFileName.c
+++ b/libXau/AuFileName.c
@@ -31,6 +31,9 @@ in this Software without prior written authorization from The Open Group.
#include <X11/Xos.h>
#include <assert.h>
#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#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 <config.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#include <X11/Xauth.h>
#include <X11/Xos.h>
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/libXau.def b/libXau/libXau.def
new file mode 100644
index 000000000..03762f509
--- /dev/null
+++ b/libXau/libXau.def
@@ -0,0 +1,10 @@
+LIBRARY libXau
+
+EXPORTS
+ XauDisposeAuth
+ XauGetBestAuthByAddr
+ XauReadAuth
+ XauWriteAuth
+ XauUnlockAuth
+ XauLockAuth
+ XauFileName \ No newline at end of file
diff --git a/libXau/makefile b/libXau/makefile
new file mode 100644
index 000000000..2d56f2ac8
--- /dev/null
+++ b/libXau/makefile
@@ -0,0 +1,13 @@
+SHAREDLIB = libXau
+
+DEFINES += HAVE_CONFIG_H
+
+CSRCS = AuDispose.c \
+ AuFileName.c \
+ AuGetAddr.c \
+ AuGetBest.c \
+ AuLock.c \
+ AuRead.c \
+ AuUnlock.c \
+ AuWrite.c
+