mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 00:46:27 -04:00
When the option SMB is ON, the port fails to package. While here: * Reorder Makefile variables * Change obsolete @unexec to @postexec * Rework patches to comply with makepatch format PR: 244778 Submitted by: tommyhp2@gmail.com Approved by: lukas.slebodnik@intrak.sk (maintainer, timeout)
14 lines
409 B
C
14 lines
409 B
C
--- src/confdb/confdb.c.orig 2014-09-17 13:01:37 UTC
|
|
+++ src/confdb/confdb.c
|
|
@@ -28,6 +28,11 @@
|
|
#include "util/strtonum.h"
|
|
#include "db/sysdb.h"
|
|
|
|
+char *strchrnul(const char *s, int ch) {
|
|
+ char *ret = strchr(s, ch);
|
|
+ return ret == NULL ? discard_const_p(char, s) + strlen(s) : ret;
|
|
+}
|
|
+
|
|
#define CONFDB_ZERO_CHECK_OR_JUMP(var, ret, err, label) do { \
|
|
if (!var) { \
|
|
ret = err; \
|