diff options
| author | 2024-11-27 12:56:02 +0100 | |
|---|---|---|
| committer | 2024-11-29 14:38:42 +0100 | |
| commit | 9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f (patch) | |
| tree | 685088ccc31d3a0971ee65d42346294af1011b4d /common | |
| parent | 563f912919d4615486ed3e02b517b005f784c1d9 (diff) | |
| download | libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.gz libimobiledevice-9bc95a0c307e7614cc3d10671d6c1c90c3ac0a9f.tar.bz2 | |
Fix compilation on MSVC
Diffstat (limited to 'common')
| -rw-r--r-- | common/userpref.c | 12 |
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 @@ | |||
| 29 | #include <stdint.h> | 29 | #include <stdint.h> |
| 30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
| 31 | #include <string.h> | 31 | #include <string.h> |
| 32 | #include <errno.h> | ||
| 33 | |||
| 32 | #ifdef HAVE_SYS_TYPES_H | 34 | #ifdef HAVE_SYS_TYPES_H |
| 33 | #include <sys/types.h> | 35 | #include <sys/types.h> |
| 34 | #endif | 36 | #endif |
| 37 | #include <dirent.h> | ||
| 35 | #ifndef _WIN32 | 38 | #ifndef _WIN32 |
| 36 | #include <pwd.h> | 39 | #include <pwd.h> |
| 37 | #endif | ||
| 38 | #include <unistd.h> | 40 | #include <unistd.h> |
| 41 | #include <libgen.h> | ||
| 42 | #include <sys/stat.h> | ||
| 43 | #endif | ||
| 39 | #include <usbmuxd.h> | 44 | #include <usbmuxd.h> |
| 40 | #if defined(HAVE_OPENSSL) | 45 | #if defined(HAVE_OPENSSL) |
| 41 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
| @@ -64,11 +69,6 @@ | |||
| 64 | #error No supported TLS/SSL library enabled | 69 | #error No supported TLS/SSL library enabled |
| 65 | #endif | 70 | #endif |
| 66 | 71 | ||
| 67 | #include <dirent.h> | ||
| 68 | #include <libgen.h> | ||
| 69 | #include <sys/stat.h> | ||
| 70 | #include <errno.h> | ||
| 71 | |||
| 72 | #ifdef _WIN32 | 72 | #ifdef _WIN32 |
| 73 | #include <shlobj.h> | 73 | #include <shlobj.h> |
| 74 | #endif | 74 | #endif |
