mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
New getmntent structure checks
This commit is contained in:
parent
c2d7973df4
commit
54fdc861a5
3 changed files with 21 additions and 0 deletions
|
@ -141,6 +141,9 @@
|
|||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* mnt_fsname structure member name */
|
||||
#undef MNT_FSNAME
|
||||
|
||||
/* mntent structure member name */
|
||||
#undef MNT_MEMB
|
||||
|
||||
|
|
16
configure
vendored
16
configure
vendored
|
@ -3961,6 +3961,22 @@ fi
|
|||
|
||||
done
|
||||
|
||||
ac_fn_c_check_member "$LINENO" "struct mntent" "mnt_fsname" "ac_cv_member_struct_mntent_mnt_fsname" "#include <mntent.h>
|
||||
"
|
||||
if test "x$ac_cv_member_struct_mntent_mnt_fsname" = xyes; then :
|
||||
|
||||
$as_echo "#define MNT_FSNAME mnt_fsname" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
ac_fn_c_check_member "$LINENO" "struct mntent" "mnt_fsname" "ac_cv_member_struct_mntent_mnt_fsname" "#include <sys/mntent.h>
|
||||
"
|
||||
if test "x$ac_cv_member_struct_mntent_mnt_fsname" = xyes; then :
|
||||
|
||||
$as_echo "#define MNT_FSNAME mnt_fsname" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
ac_fn_c_check_member "$LINENO" "struct mntent" "mnt_dir" "ac_cv_member_struct_mntent_mnt_dir" "#include <mntent.h>
|
||||
"
|
||||
if test "x$ac_cv_member_struct_mntent_mnt_dir" = xyes; then :
|
||||
|
|
|
@ -151,6 +151,8 @@ AC_CHECK_FUNCS(rint rintf atan2f floorf)
|
|||
#--------------------------------------------------------------------
|
||||
AC_CHECK_HEADERS(mntent.h)
|
||||
AC_CHECK_HEADERS(sys/mntent.h)
|
||||
AC_CHECK_MEMBER(struct mntent.mnt_fsname,[AC_DEFINE(MNT_FSNAME,mnt_fsname,mntent structure member name)],,[#include <mntent.h>])
|
||||
AC_CHECK_MEMBER(struct mntent.mnt_fsname,[AC_DEFINE(MNT_FSNAME,mnt_fsname,mntent structure member name)],,[#include <sys/mntent.h>])
|
||||
AC_CHECK_MEMBER(struct mntent.mnt_dir,[AC_DEFINE(MNT_MEMB,mnt_dir,mntent structure member name)],,[#include <mntent.h>])
|
||||
AC_CHECK_MEMBER(struct mntent.mnt_mountp,[AC_DEFINE(MNT_MEMB,mnt_mountp,mntent structure member name)],,[#include <sys/mntent.h>])
|
||||
AC_FUNC_GETMNTENT
|
||||
|
|
Loading…
Reference in a new issue