aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-04-10 16:19:15 +0200
committermarha <marha@users.sourceforge.net>2012-04-10 16:19:15 +0200
commit746b42cbf983768e6ffeb374d48f497a626c2af5 (patch)
treefc4b49cf36d62a9294dc449994a4922e05b036c2
parent0264c85a96701934cecf26413f89670f9f8e3e19 (diff)
downloadvcxsrv-746b42cbf983768e6ffeb374d48f497a626c2af5.tar.gz
vcxsrv-746b42cbf983768e6ffeb374d48f497a626c2af5.tar.bz2
vcxsrv-746b42cbf983768e6ffeb374d48f497a626c2af5.zip
Solved link errors because snprintf was not remapped to _snprintf
-rw-r--r--libXaw/src/Private.h2
-rw-r--r--libXaw/src/XawI18n.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/libXaw/src/Private.h b/libXaw/src/Private.h
index 3a91b7a43..382df3a37 100644
--- a/libXaw/src/Private.h
+++ b/libXaw/src/Private.h
@@ -28,6 +28,8 @@
#ifndef _XawPrivate_h
#define _XawPrivate_h
+#include <unistd.h>
+
#define XawMax(a, b) ((a) > (b) ? (a) : (b))
#define XawMin(a, b) ((a) < (b) ? (a) : (b))
#define XawAbs(a) ((a) < 0 ? -(a) : (a))
diff --git a/libXaw/src/XawI18n.h b/libXaw/src/XawI18n.h
index d50171cfb..132bbb49e 100644
--- a/libXaw/src/XawI18n.h
+++ b/libXaw/src/XawI18n.h
@@ -62,6 +62,7 @@ int _Xaw_iswspace
#endif
#include <stdlib.h>
+#include <unistd.h>
#ifdef USE_XWCHAR_STRING
int _Xwcslen