diff --git a/ChangeLog b/ChangeLog index a6a92e47e..5b320975a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-27 Christophe Barbe + + * libgphoto2/gphoto2-filesys.c: Return the max when unable to know + the available memory instead of failing to build. + 2003-06-26 Lutz Mueller * configure.in: Hook up camlibs/sq905 (driver by Theodore Kilgore diff --git a/libgphoto2/gphoto2-filesys.c b/libgphoto2/gphoto2-filesys.c index 2aca1991a..4b3dfac5c 100644 --- a/libgphoto2/gphoto2-filesys.c +++ b/libgphoto2/gphoto2-filesys.c @@ -49,6 +49,7 @@ # endif # include #endif +#include #ifdef HAVE_EXIF # include @@ -1962,7 +1963,11 @@ gp_get_free_memory (GPContext *context, unsigned *free) return (GP_OK); #else -#error "No way to measure free memory: you need to customize this for your system" + + // No way to know the free memory on this system + *free = UINT_MAX; + return (GP_OK); + #endif }