tSupport building on OpenBSD - safe - password protected secret keeper
 (HTM) git clone git://git.z3bra.org/safe.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 56ecbb86eba0309e57bec3469a052d388b776e0a
 (DIR) parent 51673ba1810eacc7b5a297b6690896a45280bbba
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Sun, 22 Dec 2019 09:48:36 +0100
       
       Support building on OpenBSD
       
       Diffstat:
         M makefile                            |       2 +-
         M safe-agent.c                        |       5 ++++-
       
       2 files changed, 5 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/makefile b/makefile
       t@@ -5,7 +5,7 @@ safe: safe.o readpassphrase.o
                $(LD) -o $@ safe.o readpassphrase.o $(LDFLAGS) $(LDLIBS)
        
        safe-agent: safe-agent.o
       -        $(LD) -o $@ $< $(LDFLAGS) $(LDLIBS)
       +        $(LD) -o $@ safe-agent.o $(LDFLAGS) $(LDLIBS)
        
        clean:
                rm -f *.o safe safe-agent
 (DIR) diff --git a/safe-agent.c b/safe-agent.c
       t@@ -18,7 +18,10 @@
        #include <sodium.h>
        
        #include "arg.h"
       -#include "strlcpy.h"
       +
       +#ifndef __OpenBSD__
       +        #include "strlcpy.h"
       +#endif
        
        #define SOCKDIR "/tmp/safe-XXXXXX"
        #define SOCKET  "agent"