libnetwork: Only build BeOS compatibility code if _BEOS_R5_COMPATIBLE_ is set.
This commit is contained in:
@@ -38,6 +38,8 @@ struct r5_sockaddr_in {
|
||||
char sin_zero[4];
|
||||
};
|
||||
|
||||
|
||||
#ifdef _BEOS_R5_COMPATIBLE_
|
||||
extern bool __gR5Compatibility;
|
||||
extern addr_t __gNetworkStart;
|
||||
extern addr_t __gNetworkEnd;
|
||||
@@ -67,6 +69,9 @@ check_r5_compatibility()
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
#define check_r5_compatibility() (false)
|
||||
#endif
|
||||
|
||||
|
||||
#endif // NET_R5_COMPATIBILITY_H
|
||||
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#ifdef _BEOS_R5_COMPATIBLE_
|
||||
|
||||
|
||||
bool __gR5Compatibility = false;
|
||||
addr_t __gNetworkStart;
|
||||
addr_t __gNetworkEnd;
|
||||
@@ -78,3 +81,6 @@ initialize_before(image_id our_image)
|
||||
} while (enable == 0
|
||||
&& get_next_image_info(B_CURRENT_TEAM, (int32*)&cookie, &info) == B_OK);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user