diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2023-02-20 13:46:34 +0100 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2023-02-24 09:50:04 +0100 |
commit | ffba4d2517e856df64248f66fed326a1742a1e3c (patch) | |
tree | 37e9fffcf9b8eb3393b08cc9b06b383c989fb0d0 /security/0d1n/files/patch-src_strsec.c | |
parent | games/dobutsu: update to 5 (diff) |
security/0d1n: fix build
- convert static REINPLACE_CMD to patch files as per policy
- remove remaining <alloca.h> uses
- patch getopt_long use on targets where char is unsigned
- work around missing __GNUC_PREREQ macro
- fix other missing includes
- update pkg-plist to what the maintainer intended to pack
- patch /opt/0d1n to ${DATADIR} in the relevant files
- note that project is dual licensed (upstream has since
removed the GPLv3 license)
- define LICENSE_FILE_{GPLv3,BSD3CLAUSE}
PR: 269717
Fixes: 88dd085ff7851bb2906039d97a81857fe6d8b2e3
Approved by: portmgr (build fix blanket)
Approved by: flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38725
Diffstat (limited to 'security/0d1n/files/patch-src_strsec.c')
-rw-r--r-- | security/0d1n/files/patch-src_strsec.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/security/0d1n/files/patch-src_strsec.c b/security/0d1n/files/patch-src_strsec.c new file mode 100644 index 000000000000..45dd79f5b0cf --- /dev/null +++ b/security/0d1n/files/patch-src_strsec.c @@ -0,0 +1,15 @@ +--- src/strsec.c.orig 2023-02-20 12:39:57 UTC ++++ src/strsec.c +@@ -16,11 +16,11 @@ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include "strsec.h" + + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && \ + !defined(__bsdi__) && !defined(__APPLE__) + +-#include "strsec.h" + /* + * Copy src to string dst of size siz. At most siz-1 characters + * will be copied. Always NUL terminates (unless siz == 0). |