Skip to content

Commit

Permalink
Fix building of ORM on FreeBSD (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
vedranmiletic committed May 24, 2020
1 parent 49472a3 commit e286fe8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion orm_lib/inc/drogon/orm/SqlBinder.h
Expand Up @@ -31,10 +31,20 @@
#include <vector>
#ifdef _WIN32
#include <winsock2.h>
#else // some Unix-like OS
#include <arpa/inet.h>
#endif

#if defined __linux__ || defined __FreeBSD__

#ifdef __linux__
#include <endian.h> // __BYTE_ORDER __LITTLE_ENDIAN
#include <endian.h> // __BYTE_ORDER __LITTLE_ENDIAN
#elif defined __FreeBSD__
#include <sys/endian.h> // _BYTE_ORDER _LITTLE_ENDIAN
#define __BYTE_ORDER _BYTE_ORDER
#define __LITTLE_ENDIAN _LITTLE_ENDIAN
#endif

#include <algorithm> // std::reverse()

template <typename T>
Expand Down

0 comments on commit e286fe8

Please sign in to comment.