diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2004-08-29 22:54:38 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2004-08-29 22:54:38 +0000 |
commit | 2acccefd8eb0a19e254d17ef2fe1591fdf709795 (patch) | |
tree | c03faabebbde09e967dea5f00bb750d36be19596 /sysutils/libutempter/files/patch-iface.c | |
parent | Add p5-Email-MIME-Attachment-Stripper 1.3, strip the attachments (diff) |
Add libutempter, an interface to record user sessions to utmp and wtmp files
Notes
Notes:
svn path=/head/; revision=117607
Diffstat (limited to 'sysutils/libutempter/files/patch-iface.c')
-rw-r--r-- | sysutils/libutempter/files/patch-iface.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/libutempter/files/patch-iface.c b/sysutils/libutempter/files/patch-iface.c new file mode 100644 index 000000000000..1c214aacb334 --- /dev/null +++ b/sysutils/libutempter/files/patch-iface.c @@ -0,0 +1,18 @@ +--- iface.c.orig Wed Aug 18 16:09:25 2004 ++++ iface.c Wed Aug 18 16:11:38 2004 +@@ -32,6 +32,15 @@ + #include <sys/wait.h> + #include <sys/types.h> + ++#ifndef TEMP_FAILURE_RETRY ++#define TEMP_FAILURE_RETRY(expression) \ ++ (__extension__ \ ++ ({ long int __result; \ ++ do __result = (long int) (expression); \ ++ while (__result == -1L && errno == EINTR); \ ++ __result; })) ++#endif ++ + extern int getresgid (gid_t *rgid, gid_t *egid, gid_t *sgid); + + #include "utempter.h" |