summaryrefslogtreecommitdiffstats
path: root/libvncserver/vncauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver/vncauth.c')
-rw-r--r--libvncserver/vncauth.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libvncserver/vncauth.c b/libvncserver/vncauth.c
index 4c81d30..b8ee288 100644
--- a/libvncserver/vncauth.c
+++ b/libvncserver/vncauth.c
@@ -21,8 +21,13 @@
* vncauth.c - Functions for VNC password management and authentication.
*/
+#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
#define _POSIX_SOURCE
+#endif
+#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -32,9 +37,6 @@
#include <string.h>
#include <math.h>
-#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
#ifdef LIBVNCSERVER_HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif