Skip to content

Commit

Permalink
net/libmaxminddb: Remove incorrect _POSIX_C_SOURCE
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change

PR:		272349
Reported by:	Mina Galic <freebsd@igalic.co>
Reference:	maxmind/libmaxminddb#318
  • Loading branch information
sunpoet committed Aug 16, 2023
1 parent 4ce4dbc commit b0b6c96
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/libmaxminddb/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= libmaxminddb
PORTVERSION= 1.7.1
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://github.com/maxmind/libmaxminddb/releases/download/${PORTVERSION}/

Expand Down
21 changes: 21 additions & 0 deletions net/libmaxminddb/files/patch-include_maxminddb.h
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit b0b6c96

Please sign in to comment.