Skip to content

Commit

Permalink
build BUGFIX add missing math library to link with
Browse files Browse the repository at this point in the history
Relates to #17
  • Loading branch information
rkrejci committed Feb 8, 2016
1 parent 10b7a69 commit cdccf5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ set(headers
add_library(yang SHARED ${libsrc})
set_target_properties(yang PROPERTIES VERSION ${LIBYANG_VERSION} SOVERSION ${LIBYANG_SOVERSION})

# link math
target_link_libraries(yang m)

# find pthreads
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
find_package(Threads REQUIRED)
Expand Down
3 changes: 3 additions & 0 deletions src/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

#define _GNU_SOURCE

/* needed by libmath functions isfinite(), isinf(), isnan(), signbit(), ... */
#define _ISOC99_SOURCE

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit cdccf5c

Please sign in to comment.