vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit e0a184249b1c60ff0b1afb951b50f2d92765ee27 parent e2a5f6d6f9363daee145755a568407b50716be4e Author: Randy Palamar <palamar@ualberta.ca> Date: Wed, 16 Aug 2023 09:13:29 -0600 build: stop setting _POSIX_C_SOURCE from feature_test_macros(7): > Defining _XOPEN_SOURCE with a value of 700 or greater produces the > same effects as defining _POSIX_C_SOURCE with a value of 200809L or > greater. Depending on the configuration and system pkg-conf files there can be redefinition warnings. Rather than patching with a -U_POSIX_C_SOURCE it can just be dropped instead. Diffstat:
| M | Makefile | | | 2 | +- |
| M | configure | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -46,7 +46,7 @@ CONFIG_TRE ?= 0 CONFIG_ACL ?= 0 CONFIG_SELINUX ?= 0 -CFLAGS_STD ?= -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DNDEBUG -MMD +CFLAGS_STD ?= -std=c99 -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -MMD CFLAGS_STD += -DVERSION=\"${VERSION}\" LDFLAGS_STD ?= -lc diff --git a/configure b/configure @@ -220,7 +220,7 @@ tryflag CFLAGS_TRY -Werror=unused-command-line-argument tryldflag LDFLAGS_TRY -Werror=unknown-warning-option tryldflag LDFLAGS_TRY -Werror=unused-command-line-argument -CFLAGS_STD="-std=c99 -D_POSIX_C_SOURCE=200809L -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -MMD" +CFLAGS_STD="-std=c99 -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -MMD" LDFLAGS_STD="-lc" OS=$(uname)