Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 71580a477d784996287da2e6590070b7ecbdb47f
parent df0004cf7a42e503facab6235fcfee6c026ade8e
Author: Alan Post <>
Date:   Tue,  9 Jul 2019 14:15:34 -0600

explicitly initialize strerr.

This structure is implicitly initialized to zero.  Make it explicit
to work around a linker error on Mac OS X:

    ./load qmail-pop3d commands.o case.a timeoutread.o timeoutwrite.o \
    maildir.o prioq.o now.o env.a strerr.a sig.a open.a getln.a stralloc.a \
    alloc.a substdio.a error.a str.a fs.a `cat socket.lib`
    Undefined symbols for architecture x86_64:
      "_strerr_sys", referenced from:
          _maildir_chdir in maildir.o
          _append in maildir.o
    ld: symbol(s) not found for architecture x86_64

Mstrerr_sys.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/strerr_sys.c b/strerr_sys.c @@ -1,7 +1,8 @@ #include "error.h" #include "strerr.h" -struct strerr strerr_sys; +/* explicit initialization due to linker error on Mac OS X. dorks. */ +struct strerr strerr_sys = {0,0,0,0}; void strerr_sysinit() {