diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-12-06 23:10:58 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-12-06 23:10:58 +0100 |
commit | 5e79d651caee6b7a81097ae432b829e3da952261 (patch) | |
tree | ffaeb6d2a7b1618fb6fd78ab8541cc5284ba5373 /src/disk.c | |
parent | 676da477510cb1966a74273f89c8aa64654a1d49 (diff) | |
download | 0xFFFF-5e79d651caee6b7a81097ae432b829e3da952261.tar.bz2 |
all: Compile globally without _GNU_SOURCE, define _BSD_SOURCE or _GNU_SOURCE where needed
Diffstat (limited to 'src/disk.c')
-rw-r--r-- | src/disk.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -16,6 +16,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef __linux__ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif +#endif + #include <fcntl.h> #include <libgen.h> #include <unistd.h> |