projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
log: fix kept_alive() and report expired timeout
[fw/openocd]
/
src
/
helper
/
options.c
diff --git
a/src/helper/options.c
b/src/helper/options.c
index b60d58de8c574ff24f17a9cb482d4bb7755287ff..6622ece6ca2c076854301517e7aef959ab500f52 100644
(file)
--- a/
src/helper/options.c
+++ b/
src/helper/options.c
@@
-34,9
+34,12
@@
#if IS_DARWIN
#include <libproc.h>
#endif
+/* sys/sysctl.h is deprecated on Linux from glibc 2.30 */
+#ifndef __linux__
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
+#endif
#if IS_WIN32 && !IS_CYGWIN
#include <windows.h>
#endif