log: fix kept_alive() and report expired timeout
[fw/openocd] / src / helper / options.c
index b60d58de8c574ff24f17a9cb482d4bb7755287ff..6622ece6ca2c076854301517e7aef959ab500f52 100644 (file)
 #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