summaryrefslogtreecommitdiff
path: root/camlibs/sonydscf55
diff options
context:
space:
mode:
authorDaniel P. Berrange <dan@berrange.com>2014-06-04 18:13:43 +0000
committerDaniel P. Berrange <dan@berrange.com>2014-06-04 18:13:43 +0000
commit5bc858cd44ab6131efbf5e3bb74d450044b5ce03 (patch)
treece0418ca702fdcce088e29b0713318a11482b2a4 /camlibs/sonydscf55
parent00953fd2d472b845eefb6a48ada4d922356f82e7 (diff)
downloadlibgphoto2-5bc858cd44ab6131efbf5e3bb74d450044b5ce03.tar.gz
Add <unistd.h> to files which use usleep()
The usleep() function is defined to be provided by unistd.h. On Linux this is pulled in indirectly so the missing includes don't cause build problems, but on Mingw32 the explicit include of unistd.h is required. Since sleep() is not available on Mingw32, #define it to usleep(). Remove some _POSIX_C_SOURCE macros which restricted code to 1993 POSIX standard which blocks use of usleep(). git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14997 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/sonydscf55')
-rw-r--r--camlibs/sonydscf55/sony.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/sonydscf55/sony.c b/camlibs/sonydscf55/sony.c
index e3e48c9b4..5c73fa374 100644
--- a/camlibs/sonydscf55/sony.c
+++ b/camlibs/sonydscf55/sony.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <gphoto2/gphoto2.h>
#include "sony.h"