From 43dc57e170de2a43f31e144d3a44eee1883fe466 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Sun, 13 Dec 2015 14:45:19 +0100 Subject: Fix some headers for ssl --- irc.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'irc.h') diff --git a/irc.h b/irc.h index 26e0c0a3..b9bf0e28 100644 --- a/irc.h +++ b/irc.h @@ -26,9 +26,13 @@ #ifndef _IRC_H #define _IRC_H -//#ifdef WITH_GNUTLS +#ifndef CONFIG +#include "config.h" +#endif + +#ifdef WITH_GNUTLS # include -//#endif +#endif #define IRC_MAX_LINE 512 #define IRC_MAX_ARGS 16 @@ -92,12 +96,12 @@ typedef struct irc { struct irc_user *root; struct irc_user *user; -//#ifdef WITH_GNUTLS +#ifdef WITH_GNUTLS int ssl; char *certfp; gnutls_session_t ssl_session; -//#endif +#endif char *password; /* HACK: Used to save the user's password, but before logging in, this may contain a password we should -- cgit v1.2.3