diff options
author | martymac <martymac@FreeBSD.org> | 2017-09-19 03:04:31 +0800 |
---|---|---|
committer | martymac <martymac@FreeBSD.org> | 2017-09-19 03:04:31 +0800 |
commit | 8afe6dedbff25be5fffe6c0df8b594f56abe4d45 (patch) | |
tree | 8b549056a3166e9e8befa2fb3a287f69b2a2aa99 | |
parent | 3b36a69a843952a313fdde535de0268f72d19616 (diff) | |
download | freebsd-ports-gnome-8afe6dedbff25be5fffe6c0df8b594f56abe4d45.tar.gz freebsd-ports-gnome-8afe6dedbff25be5fffe6c0df8b594f56abe4d45.tar.zst freebsd-ports-gnome-8afe6dedbff25be5fffe6c0df8b594f56abe4d45.zip |
Fix build on 11.0
Reported by: mat
-rw-r--r-- | ftp/lftp/files/patch-lib-cdefs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ftp/lftp/files/patch-lib-cdefs.h b/ftp/lftp/files/patch-lib-cdefs.h new file mode 100644 index 000000000000..cba973c609b5 --- /dev/null +++ b/ftp/lftp/files/patch-lib-cdefs.h @@ -0,0 +1,18 @@ +Fix build on FreeBSD 11.0 + +--- lib/cdefs.h.orig 2017-09-12 16:13:24.000000000 +0200 ++++ lib/cdefs.h 2017-09-18 20:44:45.506018000 +0200 +@@ -282,13 +282,7 @@ + # define __attribute_format_strfmon__(a,b) /* Ignore */ + #endif + +-/* The nonull function attribute allows to mark pointer parameters which +- must not be NULL. */ +-#if __GNUC_PREREQ (3,3) +-# define __nonnull(params) __attribute__ ((__nonnull__ params)) +-#else + # define __nonnull(params) +-#endif + + /* If fortification mode, we warn about unused results of certain + function calls which can lead to problems. */ |