Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2021-09-22 10:33:17 +0300
committerTim-Philipp Müller <tim@centricular.com>2022-10-31 13:47:33 +0300
commit1ca0d41cb38204864c9d507ccd810ed6338078bc (patch)
treecacb36bffca2b9048eb3d775c422eb3a3fa047d8
parent60ea246f650265abbed17789f0e8b28bdad5c1a9 (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.c4
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>