correct close in endmntent replacement

check for setmntent and endmntent in configure.ac


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12279 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2009-07-25 14:18:53 +00:00
parent 2cc0c40009
commit 2d32ed5f41
2 changed files with 2 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ AC_MSG_RESULT(no)
dnl Checks for library functions.
AC_CHECK_FUNCS(strerror snprintf vsnprintf)
AC_CHECK_FUNCS(setmntent endmntent strerror snprintf vsnprintf)
dnl Check if TIOCM_RTS is included in one of several possible files
AC_TRY_COMPILE([#include <termios.h>], [int foo = TIOCM_RTS;],

View File

@@ -48,7 +48,7 @@
#define setmntent(f,m) fopen(f,m)
#endif
#ifndef HAVE_ENDMNTENT
#define endmntent(f) close(f)
#define endmntent(f) fclose(f)
#endif
#ifdef HAVE_HAL