summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Duncan Ogilvie2024-11-27 12:56:02 +0100
committerGravatar Nikias Bassen2024-11-29 14:38:42 +0100
commit9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f (patch)
tree685088ccc31d3a0971ee65d42346294af1011b4d /common
parent563f912919d4615486ed3e02b517b005f784c1d9 (diff)
downloadlibimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.gz
libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.bz2
Fix compilation on MSVC
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 9c2c563..08ab7e2 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -29,13 +29,18 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
+
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
+#include <dirent.h>
#ifndef _WIN32
#include <pwd.h>
-#endif
#include <unistd.h>
+#include <libgen.h>
+#include <sys/stat.h>
+#endif
#include <usbmuxd.h>
#if defined(HAVE_OPENSSL)
#include <openssl/bn.h>
@@ -64,11 +69,6 @@
#error No supported TLS/SSL library enabled
#endif
-#include <dirent.h>
-#include <libgen.h>
-#include <sys/stat.h>
-#include <errno.h>
-
#ifdef _WIN32
#include <shlobj.h>
#endif