diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-22 19:25:34 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-22 19:25:34 +0100 |
commit | e53e23a012113952499a70115d2ca26b2a33e2bf (patch) | |
tree | c5bb164ee5ca5bfd8f95f3398aaf2a4c3f1a1406 /modules/getlogin_r | |
parent | f7fecbfc47c114a633f1fa754a0d9e1ad6cfc868 (diff) | |
download | gnulib-e53e23a012113952499a70115d2ca26b2a33e2bf.tar.gz |
getlogin_r: Work around portability problem on OSF/1.
* m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
* lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
* lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
test for a truncated result.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
* modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
* modules/getlogin_r (Depends-on): Add memchr.
* doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
Diffstat (limited to 'modules/getlogin_r')
-rw-r--r-- | modules/getlogin_r | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/getlogin_r b/modules/getlogin_r index 13c287f15f..1d5c20b836 100644 --- a/modules/getlogin_r +++ b/modules/getlogin_r @@ -8,6 +8,7 @@ m4/getlogin_r.m4 Depends-on: extensions unistd +memchr configure.ac: gl_FUNC_GETLOGIN_R |