From be8a0de38df038ded5e7d5f7d58c2f381a3bf41f Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Tue, 8 Apr 2014 12:09:42 +0200 Subject: [PATCH 1/2] Include "pthread.h" It isn't implicit on OpenBSD. --- src/toxic_windows.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/toxic_windows.h b/src/toxic_windows.h index dffa46d..295e2be 100644 --- a/src/toxic_windows.h +++ b/src/toxic_windows.h @@ -28,6 +28,7 @@ #endif #include +#include #include #include From f54cd87abce79d98cd88859055fc04496741d38a Mon Sep 17 00:00:00 2001 From: "Dmitrij D. Czarkoff" Date: Tue, 8 Apr 2014 12:11:10 +0200 Subject: [PATCH 2/2] Drop typedef redeclarations C99 doesn't permit redeclaring typedefs in the same scope. --- src/audio_call.c | 2 +- src/audio_call.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/audio_call.c b/src/audio_call.c index 3e9e3ab..c88bcce 100644 --- a/src/audio_call.c +++ b/src/audio_call.c @@ -6,8 +6,8 @@ #include "config.h" #endif -#include "audio_call.h" #include "toxic_windows.h" +#include "audio_call.h" #include "chat_commands.h" #include "global_commands.h" #include "toxic_windows.h" diff --git a/src/audio_call.h b/src/audio_call.h index 49cdd68..5535a79 100644 --- a/src/audio_call.h +++ b/src/audio_call.h @@ -7,8 +7,6 @@ #include -typedef struct ToxWindow ToxWindow; - typedef enum _AudioError { NoError = 0, @@ -27,4 +25,4 @@ int errors(); int start_transmission(ToxWindow *self); -#endif /* _audio_h */ \ No newline at end of file +#endif /* _audio_h */