diff options
author | Stephen Fisher <sfisher@sdf.org> | 2014-12-19 15:54:04 -0700 |
---|---|---|
committer | Stephen Fisher <sfisher@sdf.org> | 2014-12-19 22:56:18 +0000 |
commit | e2586ec36d0d924b933d2127e809918b980cb413 (patch) | |
tree | a097b880e727489e90d0944fc9fa38c6fdb1ab77 | |
parent | e7d2c8dad585968752b41274d6f601bed5fb860a (diff) |
Provide a floorl() function (which is currently only able to call GCC's
__builtin_floorl() function) for systems which don't provide one.
Change-Id: Ie0140ff195f0eae525c7bd70c7c3e23039fde569
Reviewed-on: https://code.wireshark.org/review/5889
Reviewed-by: Stephen Fisher <sfisher@sdf.org>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | ui/time_shift.c | 2 | ||||
-rw-r--r-- | wsutil/Makefile.common | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 42c01ec7b3..73572c524b 100644 --- a/configure.ac +++ b/configure.ac @@ -2736,6 +2736,7 @@ AC_SUBST(STRPTIME_LO) AC_CHECK_FUNCS(getprotobynumber gethostbyname2) AC_CHECK_FUNCS(issetugid) AC_CHECK_FUNCS(mmap mprotect sysconf) +AC_CHECK_FUNCS(floorl) dnl blank for now, but will be used in future AC_SUBST(wireshark_SUBDIRS) diff --git a/ui/time_shift.c b/ui/time_shift.c index 3363c50f40..d9275526ec 100644 --- a/ui/time_shift.c +++ b/ui/time_shift.c @@ -33,6 +33,8 @@ #include "ui/ui_util.h" +#include "wsutil/floor.h" + #define SHIFT_POS 0 #define SHIFT_NEG 1 #define SHIFT_SETTOZERO 1 diff --git a/wsutil/Makefile.common b/wsutil/Makefile.common index f59f4c2af2..d09c7d9f11 100644 --- a/wsutil/Makefile.common +++ b/wsutil/Makefile.common @@ -51,6 +51,7 @@ LIBWSUTIL_SRC = \ des.c \ eax.c \ filesystem.c \ + floor.c \ g711.c \ glib_version_info.c \ md4.c \ @@ -103,6 +104,7 @@ libwsutil_nonrepl_INCLUDES = \ des.h \ eax.h \ filesystem.h \ + floor.h \ g711.h \ glib_version_info.h \ md4.h \ |