[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:
Tony Tung 2016-08-29 21:56:17 -07:00
parent e73e3e82b2
commit 5adef73d26

View File

@ -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