common: Make sure ETIMEDOUT is defined
diff --git a/common/userpref.c b/common/userpref.c
index 32904c7..ddd380a 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -73,6 +73,10 @@
 #include <shlobj.h>
 #endif
 
+#ifndef ETIMEDOUT
+#define ETIMEDOUT 138
+#endif
+
 #include <libimobiledevice-glue/utils.h>
 
 #include "userpref.h"