-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation on Ubuntu 10.04 LTS and (hopefully) Debian squeeze[1]
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef UUID_67C91670_FCCB_4855_BDF7_609F1EECB8B4 | ||
#define UUID_67C91670_FCCB_4855_BDF7_609F1EECB8B4 | ||
|
||
/* all these definitions, are included into bits/in.h from libc6-dev 2.15-0ubuntu10 | ||
* from Ubuntu 12.04 and is not included into libc6-dev 2.11.1-0ubuntu7.10 from | ||
* Ubuntu 10.04. | ||
* linux/in.h is not included directly because of lots of redefinitions, | ||
* extracting single value from linux/in.h is not done because it looks like | ||
* autotools reinvention */ | ||
#ifndef IP_ORIGDSTADDR | ||
# warning Using hardcoded value for IP_ORIGDSTADDR as libc headers do not define it. | ||
# define IP_ORIGDSTADDR 20 | ||
#endif | ||
|
||
#ifndef IP_RECVORIGDSTADDR | ||
# warning Using hardcoded value for IP_RECVORIGDSTADDR as libc headers do not define it. | ||
# define IP_RECVORIGDSTADDR IP_ORIGDSTADDR | ||
#endif | ||
|
||
#ifndef IP_TRANSPARENT | ||
# warning Using hardcoded value for IP_TRANSPARENT as libc headers do not define it. | ||
# define IP_TRANSPARENT 19 | ||
#endif | ||
|
||
#endif // 67C91670_FCCB_4855_BDF7_609F1EECB8B4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef UUID_FC148CFA_5ECC_488E_8A62_CD39406C9F1E | ||
#define UUID_FC148CFA_5ECC_488E_8A62_CD39406C9F1E | ||
|
||
/* evutil_socket_t is macros in libevent-2.0, not typedef, libevent-1.4 is | ||
* still supported because of Ubuntu 10.04 LTS */ | ||
#ifndef evutil_socket_t | ||
# warning Using hardcoded value for evutil_socket_t as libevent headers do not define it. | ||
# define evutil_socket_t int | ||
#endif | ||
|
||
#endif // FC148CFA_5ECC_488E_8A62_CD39406C9F1E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters