From f6c53a9ef9f9331feb811bc9cc974e8b4dd83f24 Mon Sep 17 00:00:00 2001 From: Christophe Barbe Date: Wed, 27 Aug 2003 22:13:45 +0000 Subject: [PATCH] Return UINT_MAX free memory in worst case. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6683 67ed7778-7388-44ab-90cf-0a291f65f57c --- ChangeLog | 5 +++++ libgphoto2/gphoto2-filesys.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 }