Merge pull request #522 from 9thsector/FreeBSDFixes

FreeBSD Compile Fixes
This commit is contained in:
Michael Cook (mackal) 2016-05-25 18:53:56 -04:00
commit 56cb719d1a
3 changed files with 27 additions and 0 deletions

View File

@ -10,6 +10,12 @@
#include "types.h" #include "types.h"
#include "mysql_request_row.h" #include "mysql_request_row.h"
#ifdef __FreeBSD__
#include <string>
#include <sstream>
#include <iostream>
#endif
class MySQLRequestResult { class MySQLRequestResult {
private: private:
MYSQL_RES* m_Result; MYSQL_RES* m_Result;

View File

@ -46,6 +46,16 @@ extern "C" { //the perl headers dont do this for us...
#undef THIS #undef THIS
#endif #endif
//These need to be cleaned up on FreeBSD
#ifdef __FreeBSD__
#ifdef do_open
#undef do_open
#endif
#ifdef do_close
#undef do_close
#endif
#endif
#endif /*EMU_PERL_H_*/ #endif /*EMU_PERL_H_*/

View File

@ -54,6 +54,17 @@ extern "C" { //the perl headers dont do this for us...
#ifdef Zero #ifdef Zero
#undef Zero #undef Zero
#endif #endif
//These need to be cleaned up on FreeBSD
#ifdef __FreeBSD__
#ifdef do_open
#undef do_open
#endif
#ifdef do_close
#undef do_close
#endif
#endif
//so embedded scripts can use xs extensions (ala 'use socket;') //so embedded scripts can use xs extensions (ala 'use socket;')
EXTERN_C void boot_DynaLoader(pTHX_ CV* cv); EXTERN_C void boot_DynaLoader(pTHX_ CV* cv);