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
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2003-08-27 Christophe Barbe <christophe@ufies.org>
|
||||
|
||||
* libgphoto2/gphoto2-filesys.c: Return the max when unable to know
|
||||
the available memory instead of failing to build.
|
||||
|
||||
2003-06-26 Lutz Mueller <lutz@users.sourceforge.net>
|
||||
|
||||
* configure.in: Hook up camlibs/sq905 (driver by Theodore Kilgore
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
# endif
|
||||
# include <sys/sysctl.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef HAVE_EXIF
|
||||
# include <libexif/exif-data.h>
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user