ObjFW  Check-in [8016761093]

Overview
Comment:configure: Check for fcntl.h
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 801676109330d839400e4777dadfeab86a03dbe10561b9ae028b9664f9bfecb3
User & Date: js on 2017-05-06 22:08:15
Other Links: manifest | tags
Context
2017-05-06
22:10
OFString: Add missing #ifdef check-in: 32e47a0f36 user: js tags: trunk
22:08
configure: Check for fcntl.h check-in: 8016761093 user: js tags: trunk
22:06
configure: Check for wchar_t and wchar.h check-in: 13768d7743 user: js tags: trunk
Changes

Modified configure.ac from [c26e4aca36] to [f0dfe7a194].

926
927
928
929
930
931
932

933
934
935
936
937
938
939
		AC_DEFINE(HAVE_READDIR_R, 1, [Whether we have readdir_r()])
	], [
		AC_MSG_RESULT(no)
	])
	OBJCFLAGS="$old_OBJCFLAGS"
])


AC_CHECK_FUNCS([sysconf gmtime_r localtime_r nanosleep fcntl])

AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])

AC_CHECK_FUNC(pipe, [
	AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])







>







926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
		AC_DEFINE(HAVE_READDIR_R, 1, [Whether we have readdir_r()])
	], [
		AC_MSG_RESULT(no)
	])
	OBJCFLAGS="$old_OBJCFLAGS"
])

AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_FUNCS([sysconf gmtime_r localtime_r nanosleep fcntl])

AC_CHECK_HEADERS(xlocale.h)
AC_CHECK_FUNCS([strtod_l strtof_l asprintf_l])

AC_CHECK_FUNC(pipe, [
	AC_DEFINE(OF_HAVE_PIPE, 1, [Whether we have pipe()])

Modified src/OFStream.m from [a53df0ced7] to [553fc37056].

21
22
23
24
25
26
27

28

29
30
31
32
33
34
35
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


#include <fcntl.h>


#include "platform.h"

#ifndef OF_WINDOWS
# include <signal.h>
#endif








>
|
>







21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif

#include "platform.h"

#ifndef OF_WINDOWS
# include <signal.h>
#endif