git: b0b6c960682c - main - net/libmaxminddb: Remove incorrect _POSIX_C_SOURCE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Aug 2023 18:30:46 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b0b6c960682cd256cfe227b648971b66ef1f2038 commit b0b6c960682cd256cfe227b648971b66ef1f2038 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-08-16 18:10:27 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-08-16 18:25:10 +0000 net/libmaxminddb: Remove incorrect _POSIX_C_SOURCE - Bump PORTREVISION for package change PR: 272349 Reported by: Mina Galic <freebsd@igalic.co> Reference: https://github.com/maxmind/libmaxminddb/issues/318 --- net/libmaxminddb/Makefile | 1 + net/libmaxminddb/files/patch-include_maxminddb.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/net/libmaxminddb/Makefile b/net/libmaxminddb/Makefile index 453959944c15..a14debe94ab4 100644 --- a/net/libmaxminddb/Makefile +++ b/net/libmaxminddb/Makefile @@ -1,5 +1,6 @@ PORTNAME= libmaxminddb PORTVERSION= 1.7.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://github.com/maxmind/libmaxminddb/releases/download/${PORTVERSION}/ diff --git a/net/libmaxminddb/files/patch-include_maxminddb.h b/net/libmaxminddb/files/patch-include_maxminddb.h new file mode 100644 index 000000000000..ebe8e17d8ae9 --- /dev/null +++ b/net/libmaxminddb/files/patch-include_maxminddb.h @@ -0,0 +1,21 @@ +--- include/maxminddb.h.orig 2022-09-30 21:50:22 UTC ++++ include/maxminddb.h +@@ -5,18 +5,6 @@ extern "C" { + #ifndef MAXMINDDB_H + #define MAXMINDDB_H + +-/* Request POSIX.1-2008. However, we want to remain compatible with +- * POSIX.1-2001 (since we have been historically and see no reason to drop +- * compatibility). By requesting POSIX.1-2008, we can conditionally use +- * features provided by that standard if the implementation provides it. We can +- * check for what the implementation provides by checking the _POSIX_VERSION +- * macro after including unistd.h. If a feature is in POSIX.1-2008 but not +- * POSIX.1-2001, check that macro before using the feature (or check for the +- * feature directly if possible). */ +-#ifndef _POSIX_C_SOURCE +-#define _POSIX_C_SOURCE 200809L +-#endif +- + #include "maxminddb_config.h" + #include <stdarg.h> + #include <stdbool.h>