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:
@@ -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;],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user