1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Added check for HAVE_DOT11 macro in RSNInformation header/source files.

This commit is contained in:
Matias Fontanini
2014-06-09 22:50:49 -03:00
parent 3d4f509a62
commit c25d4738b4
2 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,9 @@
*
*/
#ifndef TINS_RSN_INFORMATION
#include "config.h"
#if !defined(TINS_RSN_INFORMATION) && defined(HAVE_DOT11)
#define TINS_RSN_INFORMATION
#include <stdint.h>

View File

@@ -27,8 +27,10 @@
*
*/
#include <stdexcept>
#include "rsn_information.h"
#ifdef HAVE_DOT11
#include <stdexcept>
#include "exceptions.h"
#include "pdu_option.h"
#include "dot11/dot11_base.h"
@@ -152,3 +154,5 @@ RSNInformation RSNInformation::from_option(const PDUOption<uint8_t, Dot11> &opt)
return RSNInformation(opt.data_ptr(), opt.data_size());
}
}
#endif // HAVE_DOT11