1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00

40425: HAVE_* tests for getutxent etc.

Not yet 100% clear where the #if's go, depends on how various
systems implement the old or new formats.
This commit is contained in:
Peter Stephenson 2017-01-27 10:26:34 +00:00
parent 1633b2800d
commit 8575e2ba57
3 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2017-01-27 Peter Stephenson <p.stephenson@samsung.com>
* 40425: configure.ac, Src/watch.c: HAVE_* tests for getutxent
etc.
2017-01-26 Peter Stephenson <p.w.stephenson@ntlworld.com> 2017-01-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 40423: Src/params.c, Test/E01options.ztst: similar for type * 40423: Src/params.c, Test/E01options.ztst: similar for type

View file

@ -87,9 +87,12 @@
#if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE) #if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
# define WATCH_STRUCT_UTMP struct utmpx # define WATCH_STRUCT_UTMP struct utmpx
# if defined(HAVE_SETUTXENT) && defined(HAVE_GETUTXENT) && defined(HAVE_ENDUTXENT)
# define setutent setutxent # define setutent setutxent
# define getutent getutxent # define getutent getutxent
# define endutent endutxent # define endutent endutxent
# endif
/* /*
* In utmpx, the ut_name field is replaced by ut_user. * In utmpx, the ut_name field is replaced by ut_user.
* Howver, on some systems ut_name may already be defined this * Howver, on some systems ut_name may already be defined this

View file

@ -1324,7 +1324,8 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
symlink getcwd \ symlink getcwd \
cygwin_conv_path \ cygwin_conv_path \
nanosleep \ nanosleep \
srand_deterministic) srand_deterministic \
setutxent getutxent endutxent)
AC_FUNC_STRCOLL AC_FUNC_STRCOLL
AH_TEMPLATE([REALPATH_ACCEPTS_NULL], AH_TEMPLATE([REALPATH_ACCEPTS_NULL],