diff options
-rw-r--r-- | include/ouroboros/dev.h | 2 | ||||
-rw-r--r-- | include/ouroboros/time_utils.h | 1 | ||||
-rw-r--r-- | src/lib/cdap.c | 1 | ||||
-rw-r--r-- | src/lib/time_utils.c | 1 | ||||
-rw-r--r-- | src/tools/echo/echo.c | 2 |
5 files changed, 6 insertions, 1 deletions
diff --git a/include/ouroboros/dev.h b/include/ouroboros/dev.h index 91d5c7de..d5fb744b 100644 --- a/include/ouroboros/dev.h +++ b/include/ouroboros/dev.h @@ -22,7 +22,7 @@ #include <unistd.h> #include <stdint.h> -#include <sys/time.h> +#include <time.h> #include <ouroboros/qos.h> #include <ouroboros/flow.h> diff --git a/include/ouroboros/time_utils.h b/include/ouroboros/time_utils.h index 320cb6f1..e097a01f 100644 --- a/include/ouroboros/time_utils.h +++ b/include/ouroboros/time_utils.h @@ -34,6 +34,7 @@ #define MILLION 1000000L #define BILLION 1000000000L +#include <time.h> #include <sys/time.h> #include <limits.h> /* LONG_MAX */ diff --git a/src/lib/cdap.c b/src/lib/cdap.c index 4599fd8b..0c6140eb 100644 --- a/src/lib/cdap.c +++ b/src/lib/cdap.c @@ -20,6 +20,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ouroboros/config.h> #include <ouroboros/cdap.h> #include <ouroboros/bitmap.h> #include <ouroboros/common.h> diff --git a/src/lib/time_utils.c b/src/lib/time_utils.c index 2521f217..d0b312da 100644 --- a/src/lib/time_utils.c +++ b/src/lib/time_utils.c @@ -20,6 +20,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ouroboros/config.h> #include <ouroboros/time_utils.h> #include <stddef.h> diff --git a/src/tools/echo/echo.c b/src/tools/echo/echo.c index 4484dc71..ab7d5557 100644 --- a/src/tools/echo/echo.c +++ b/src/tools/echo/echo.c @@ -20,6 +20,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#define _POSIX_C_SOURCE 199309L + #include <stdio.h> #include <string.h> |