aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpremysl <p.janouch@gmail.com>2015-08-06 21:14:19 +0200
committerpremysl <p.janouch@gmail.com>2015-08-06 21:14:19 +0200
commit268a359cf41966af3b59b10db5499d107fedd651 (patch)
treeb371448fa7441e4192989b265135f39547550381
parentc0ff71e9bebffc3d6d8976bd5032a8bd98a5dcf0 (diff)
downloadponymap-268a359cf41966af3b59b10db5499d107fedd651.tar.gz
ponymap-268a359cf41966af3b59b10db5499d107fedd651.tar.xz
ponymap-268a359cf41966af3b59b10db5499d107fedd651.zip
Bump liberty
Pulling in kqueue support.
-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;