diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -46,10 +46,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |||
| 46 | #include "usb.h" | 46 | #include "usb.h" |
| 47 | #include "device.h" | 47 | #include "device.h" |
| 48 | #include "client.h" | 48 | #include "client.h" |
| 49 | 49 | #include "conf.h" | |
| 50 | #ifdef HAVE_LIBIMOBILEDEVICE | ||
| 51 | extern const char* userpref_get_config_dir(); | ||
| 52 | #endif | ||
| 53 | 50 | ||
| 54 | static const char *socket_path = "/var/run/usbmuxd"; | 51 | static const char *socket_path = "/var/run/usbmuxd"; |
| 55 | static const char *lockfile = "/var/run/usbmuxd.pid"; | 52 | static const char *lockfile = "/var/run/usbmuxd.pid"; |
| @@ -534,7 +531,7 @@ int main(int argc, char *argv[]) | |||
| 534 | goto terminate; | 531 | goto terminate; |
| 535 | 532 | ||
| 536 | #ifdef HAVE_LIBIMOBILEDEVICE | 533 | #ifdef HAVE_LIBIMOBILEDEVICE |
| 537 | const char* userprefdir = userpref_get_config_dir(); | 534 | const char* userprefdir = config_get_config_dir(); |
| 538 | struct stat fst; | 535 | struct stat fst; |
| 539 | memset(&fst, '\0', sizeof(struct stat)); | 536 | memset(&fst, '\0', sizeof(struct stat)); |
| 540 | if (stat(userprefdir, &fst) < 0) { | 537 | if (stat(userprefdir, &fst) < 0) { |
