summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AuFileName.c2
-rw-r--r--AuLock.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/AuFileName.c b/AuFileName.c
index d1057fa..ce62327 100644
--- a/AuFileName.c
+++ b/AuFileName.c
@@ -49,7 +49,7 @@ XauFileName ()
if (!name) {
#ifdef WIN32
(void) strcpy (dir, "/users/");
- if (name = getenv("USERNAME")) {
+ if ((name = getenv("USERNAME"))) {
(void) strcat (dir, name);
name = dir;
}
diff --git a/AuLock.c b/AuLock.c
index 5374948..dc84ab6 100644
--- a/AuLock.c
+++ b/AuLock.c
@@ -39,6 +39,7 @@ in this Software without prior written authorization from The Open Group.
#ifndef WIN32
extern unsigned sleep ();
#else
+#include <X11/Xwindows.h>
#define link rename
#endif
#endif