pkgsrc/x11/sessreg/patches/patch-ab
bjs c4ba4d9545 Update to sessreg-1.0.3. Remove patch-aa, as the portability fix
is integrated.  Also, replace per-OS preprocessor directives
for #define NO_UTMP in sessreg.h with NO_COLON_ZERO_IN_UTMP.
Please see Makefile and patch-ab for clarification.  While here,
add CONFIGURE_ARGS+=--localstatedir=${VARBASE:Q} and BUILD_DEFS+=VARBASE,
as this package definitely uses it.

Upstream change:

 -  X.Org Bug #9887: sessreg should include sys/types.h on FreeBSD
    X.Org Bugzilla #9887: <https://bugs.freedesktop.org/show_bug.cgi?id=9887>
2007-11-23 12:23:39 +00:00

16 lines
451 B
Text

$NetBSD: patch-ab,v 1.1 2007/11/23 12:23:40 bjs Exp $
Ugh ... more arbitrary per-OS preprocessor fun; let's replace this
with something we can keep track of more intuitively.
--- sessreg.h.orig 2007-06-11 18:41:04.000000000 -0400
+++ sessreg.h
@@ -86,7 +86,7 @@
#endif
#ifdef CSRG_BASED
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#ifdef NO_COLON_ZERO_IN_UTMP
/* *BSD doesn't like a ':0' type entry in utmp */
#define NO_UTMP
#endif