mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-21 23:46:03 +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:
parent
1633b2800d
commit
8575e2ba57
|
@ -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>
|
||||
|
||||
* 40423: Src/params.c, Test/E01options.ztst: similar for type
|
||||
|
|
|
@ -87,9 +87,12 @@
|
|||
|
||||
#if !defined(WATCH_STRUCT_UTMP) && defined(HAVE_STRUCT_UTMPX) && defined(REAL_UTMPX_FILE)
|
||||
# define WATCH_STRUCT_UTMP struct utmpx
|
||||
# define setutent setutxent
|
||||
# define getutent getutxent
|
||||
# define endutent endutxent
|
||||
# if defined(HAVE_SETUTXENT) && defined(HAVE_GETUTXENT) && defined(HAVE_ENDUTXENT)
|
||||
# define setutent setutxent
|
||||
# define getutent getutxent
|
||||
# define endutent endutxent
|
||||
# endif
|
||||
|
||||
/*
|
||||
* In utmpx, the ut_name field is replaced by ut_user.
|
||||
* Howver, on some systems ut_name may already be defined this
|
||||
|
|
|
@ -1324,7 +1324,8 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \
|
|||
symlink getcwd \
|
||||
cygwin_conv_path \
|
||||
nanosleep \
|
||||
srand_deterministic)
|
||||
srand_deterministic \
|
||||
setutxent getutxent endutxent)
|
||||
AC_FUNC_STRCOLL
|
||||
|
||||
AH_TEMPLATE([REALPATH_ACCEPTS_NULL],
|
||||
|
|
Loading…
Reference in New Issue