From d3c585d16030c1bd44183499ffa4660ae7e69ec1 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 16 Feb 2015 17:22:43 +0000
Subject: fstatat is in sys/stat.h


diff --git a/lib/symlinkat.c b/lib/symlinkat.c
index 7a663af..b6b09e2 100644
--- a/lib/symlinkat.c
+++ b/lib/symlinkat.c
@@ -18,6 +18,9 @@
 
 #include <config.h>
 
+#ifdef __HAIKU__
+#include <sys/stat.h>
+#endif
 #include <unistd.h>
 #include <errno.h>
 
-- 
2.19.1

