Fix for compiling on AIX

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/lyx-1_1_5@868 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-07-07 14:28:52 +00:00
parent 62b45d84f8
commit 91a3dc5607
3 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2000-07-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* configure.in: add check for strings.h header.
* src/spellchecker.C: include <strings.h> to make sure that
bzero() is defined (needed by FD_ZERO at least on AIX).
2000-07-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/LaTeX.C: Patch from Baruch to add hebrew table of

View File

@ -165,7 +165,7 @@ AC_LANG_CPLUSPLUS
# some standard header files
AC_HEADER_DIRENT
AC_HEADER_MAJOR
AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h)
AC_CHECK_HEADERS(sys/time.h sys/types.h sys/select.h strings.h)
# some annoying header files
#LYX_PATH_HEADER(stl_string_fwd.h)

View File

@ -34,6 +34,10 @@
#endif
#ifdef HAVE_SYS_SELECT_H
# ifdef HAVE_STRINGS_H
// <strings.h> is needed at least on AIX because FD_ZERO uses bzero().
# include <strings.h>
# endif
#include <sys/select.h>
#endif