summaryrefslogtreecommitdiffstats
path: root/src/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/disk.c b/src/disk.c
index b8e9f51..11df4af 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -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>