aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
m---------liberty0
-rw-r--r--ponymap.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 35d3688..4a7f421 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,12 @@ set (project_VERSION "${project_VERSION_MAJOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_MINOR}")
set (project_VERSION "${project_VERSION}.${project_VERSION_PATCH}")
+if ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
+ # Need this in FreeBSD and OpenBSD respectively;
+ # our POSIX version macros make it undefined
+ add_definitions (-D__BSD_VISIBLE=1 -D_BSD_SOURCE=1)
+endif ("${CMAKE_SYSTEM_NAME}" MATCHES "BSD")
+
# Dependencies
find_package (Curses)
find_package (PkgConfig REQUIRED)
diff --git a/liberty b/liberty
-Subproject 8c6d18757d2d4135963f3dbab6d2d5ec8c8b6af
+Subproject 1a305a1c6b1608219334d7512fc09081c9066c9
diff --git a/ponymap.c b/ponymap.c
index 2726675..ca1e58c 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -1777,9 +1777,9 @@ list_foreach (const char *list, list_foreach_fn callback, void *user_data)
str_vector_init (&items);
bool success = false;
- split_str_ignore_empty (list, ',', &items);
+ cstr_split_ignore_empty (list, ',', &items);
for (size_t i = 0; i < items.len; i++)
- if (!callback (user_data, strip_str_in_place (items.vector[i], " ")))
+ if (!callback (user_data, cstr_strip_in_place (items.vector[i], " ")))
goto fail;
success = true;