summaryrefslogtreecommitdiff
path: root/libgphoto2_port/gphoto2/gphoto2-port-portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2_port/gphoto2/gphoto2-port-portability.h')
-rw-r--r--libgphoto2_port/gphoto2/gphoto2-port-portability.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h
index 2233f7648..c85118567 100644
--- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h
+++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h
@@ -171,7 +171,9 @@ typedef struct {
# include <strings.h>
# include <sys/types.h>
# include <dirent.h>
+#ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
+#endif
# include <sys/stat.h>
# include <unistd.h>