mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
[cdatapack] don't define _BSD_SOURCE if it's already defined
Summary: On some platforms, it's defined by errno.h. WTF. Test Plan: make local Reviewers: #fastmanifest, zamsden, durham Reviewed By: durham Subscribers: mitrandir, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3789066 Signature: t1:3789066:1472521513:1b53feab3f46b55b2b0f4d20f82b829f304f5daf
This commit is contained in:
parent
e73e3e82b2
commit
5adef73d26
@ -12,7 +12,9 @@
|
||||
#include <sys/mman.h>
|
||||
|
||||
#if defined(__linux__)
|
||||
#if !defined(_BSD_SOURCE)
|
||||
#define _BSD_SOURCE
|
||||
#endif /* #if !defined(_BSD_SOURCE) */
|
||||
#include <endian.h>
|
||||
#define ntohll be64toh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user