Disable useless examples
Not packaged and not used in tests (31 out of 32 still pass on amd64), but 59 less .c files to compile. No WANTLIB, dynamix export or PLIST changes. OK jca
This commit is contained in:
parent
7f27cba5d4
commit
814ef024bd
|
@ -25,6 +25,7 @@ WRKBUILD = ${WRKDIST}/build
|
|||
BUILD_DEPENDS = devel/cmocka \
|
||||
devel/argp-standalone
|
||||
|
||||
CONFIGURE_ARGS += -DUNIT_TESTING=ON
|
||||
CONFIGURE_ARGS += -DUNIT_TESTING=ON \
|
||||
-DWITH_EXAMPLES=OFF
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
Fix macro collision with __attribute__ ((__unused__)) in system-wide headers.
|
||||
Problem known upstream: https://bugs.libssh.org/T175
|
||||
|
||||
Index: examples/sshd_direct-tcpip.c
|
||||
--- examples/sshd_direct-tcpip.c.orig
|
||||
+++ examples/sshd_direct-tcpip.c
|
||||
@@ -41,16 +41,16 @@ clients must be made or how a client should react.
|
||||
|
||||
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
|
||||
|
||||
-#ifndef __unused__
|
||||
+#ifndef ssh__unused
|
||||
# ifdef HAVE_UNUSED_ATTRIBUTE
|
||||
-# define __unused__ __attribute__((unused))
|
||||
+# define ssh__unused __attribute__((unused))
|
||||
# else /* HAVE_UNUSED_ATTRIBUTE */
|
||||
-# define __unused__
|
||||
+# define ssh__unused
|
||||
# endif /* HAVE_UNUSED_ATTRIBUTE */
|
||||
-#endif /* __unused__ */
|
||||
+#endif /* ssh__unused */
|
||||
|
||||
#ifndef UNUSED_PARAM
|
||||
-#define UNUSED_PARAM(param) param __unused__
|
||||
+#define UNUSED_PARAM(param) param ssh__unused
|
||||
#endif /* UNUSED_PARAM */
|
||||
|
||||
#ifndef KEYS_FOLDER
|
Loading…
Reference in New Issue