Remove check for unistd.h, assume it is available (already often used without checking).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2649 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2008-06-05 16:52:39 +00:00
parent d4748f43dd
commit d56ef68ae4
4 changed files with 6 additions and 6 deletions

View File

@ -3,6 +3,9 @@
* Makefile.am, waf, wscript, scripts/wafinit.sh:
Add alternative build system: Waf.
Use wafinit.sh to create a Makefile and configure files.
* configure.in, wscript, tagmanager/entry.c:
Remove check for unistd.h, assume it is available (already often
used without checking).
2008-06-05 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -33,7 +33,7 @@ LIBTOOL="$LIBTOOL --silent"
# autoscan start
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h regex.h stdlib.h sys/time.h unistd.h])
AC_CHECK_HEADERS([fcntl.h fnmatch.h glob.h regex.h stdlib.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_OFF_T

View File

@ -25,9 +25,7 @@
#if defined (HAVE_TYPES_H)
# include <types.h> /* to declare off_t on some hosts */
#endif
#if defined (HAVE_UNISTD_H)
# include <unistd.h> /* to declare close (), ftruncate (), truncate () */
#endif
/* These header files provide for the functions necessary to do file
* truncation.

View File

@ -109,8 +109,7 @@ def configure(conf):
conf_check_header('sys/time.h')
conf_check_header('sys/types.h')
conf_check_header('sys/stat.h')
conf_check_header('unistd.h')
conf.define('HAVE_STDLIB', 1) # are there systems without stdlib.h?
conf.define('HAVE_STDLIB_H', 1) # are there systems without stdlib.h?
conf.define('STDC_HEADERS', 1) # an optimistic guess ;-)
if Params.g_options.gnu_regex: