diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-09-22 10:33:17 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-10-31 13:47:33 +0300 |
commit | 1ca0d41cb38204864c9d507ccd810ed6338078bc (patch) | |
tree | cacb36bffca2b9048eb3d775c422eb3a3fa047d8 | |
parent | 60ea246f650265abbed17789f0e8b28bdad5c1a9 (diff) |
orccpu-arm.c: Include headers conditionally
unistd.h and sys/time.h may not be universally available, so only include them
if they were found at configure time.
-rw-r--r-- | orc/orccpu-arm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/orc/orccpu-arm.c b/orc/orccpu-arm.c index d1d436e..6bb219e 100644 --- a/orc/orccpu-arm.c +++ b/orc/orccpu-arm.c @@ -32,12 +32,16 @@ #include <orc/orcutils.h> #include <orc/orcdebug.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <stdio.h> +#ifdef HAVE_SYS_TIME_H #include <sys/time.h> +#endif #include <time.h> #if defined(__linux__) #include <linux/auxvec.h> |