From 6f967a68d5a6c0fda3e0d4092dde54eb6ffd4c32 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 23 Aug 2022 17:20:03 -0500 Subject: [PATCH] Make pthread.h a default include and remove config.h from being included in rig.h https://github.com/Hamlib/Hamlib/milestone/14 --- include/hamlib/rig.h | 5 ----- security/security.c | 1 + src/misc.h | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 2717adcb0..a491ebfb6 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -37,10 +37,7 @@ #include #include #include -#include -#ifdef HAVE_PTHREAD #include -#endif /* Rig list is in a separate file so as not to mess up w/ this one */ #include @@ -2571,9 +2568,7 @@ struct rig_state { void *async_data_handler_priv_data; volatile int poll_routine_thread_run; void *poll_routine_priv_data; -#ifdef HAVE_PTHREAD pthread_mutex_t mutex_set_transaction; -#endif hamlib_port_t rigport; /*!< Rig port (internal use). */ hamlib_port_t pttport; /*!< PTT port (internal use). */ hamlib_port_t dcdport; /*!< DCD port (internal use). */ diff --git a/security/security.c b/security/security.c index cc661eee2..bc45f3228 100644 --- a/security/security.c +++ b/security/security.c @@ -27,6 +27,7 @@ #include "AESStringCrypt.h" #include "password.h" #include "../src/misc.h" +#include "hamlib/config.h" #if defined(_WIN32) // gmtime_r can be defined by mingw diff --git a/src/misc.h b/src/misc.h index 063385e84..b85f969b1 100644 --- a/src/misc.h +++ b/src/misc.h @@ -23,6 +23,7 @@ #define _MISC_H 1 #include +#include /*