ObjFW  Check-in [cd8dea6265]

Overview
Comment:Do not check for off64_t on DJGPP

DJGPP has off64_t, but not the functions that should come with it.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cd8dea6265e52ae6ee412407bbd9eb106a0134e0ea668a2cd7c4da69e6b906d6
User & Date: js on 2017-01-16 01:13:09
Other Links: manifest | tags
Context
2017-01-16
01:14
configure: Fix the readdir_r check check-in: 15945db3de user: js tags: trunk
01:13
Do not check for off64_t on DJGPP check-in: cd8dea6265 user: js tags: trunk
01:11
Define SA_RESTART to 0 if it's missing check-in: cb0a90f26d user: js tags: trunk
Changes

Modified configure.ac from [93db87e537] to [bcfd558931].

835
836
837
838
839
840
841





842
843
844






845
846
847
848
849
850
851
835
836
837
838
839
840
841
842
843
844
845
846



847
848
849
850
851
852
853
854
855
856
857
858
859







+
+
+
+
+
-
-
-
+
+
+
+
+
+







	AS_HELP_STRING([--disable-files], [disable file support]))
AS_IF([test x"$enable_files" != x"no"], [
	AC_DEFINE(OF_HAVE_FILES, 1, [Whether we have files])
	AC_SUBST(USE_SRCS_FILES, '${SRCS_FILES}')
	AC_SUBST(OFHASH, "ofhash")
	AC_SUBST(OFZIP, "ofzip")

	case "$host_os" in
		msdosdjgpp*)
			dnl DJGPP has the type, but it's not really usable.
			;;
		*)
	AC_CHECK_TYPE(off64_t, [
		AC_DEFINE(OF_HAVE_OFF64_T, 1, [Whether we have off64_t])
	])
			AC_CHECK_TYPE(off64_t, [
				AC_DEFINE(OF_HAVE_OFF64_T, 1,
					[Whether we have off64_t])
			])
			;;
	esac

	AC_CHECK_HEADERS([pwd.h grp.h])
	AC_CHECK_FUNC(chmod, [
		AC_DEFINE(OF_HAVE_CHMOD, 1, [Whether we have chmod()])
	])
	AC_CHECK_FUNC(chown, [
		AC_DEFINE(OF_HAVE_CHOWN, 1, [Whether we have chown()])