dateutils
dateutils copied to clipboard
Needs __BSD_VISIBLE defined on FreeBSD
diff --git a/build-aux/yuck.c b/build-aux/yuck.c
index 225d8833..3c3d33d5 100644
--- a/build-aux/yuck.c
+++ b/build-aux/yuck.c
@@ -38,6 +38,9 @@
# include "config.h"
#endif /* HAVE_CONFIG_H */
/* for fgetln() */
+#if !defined __BSD_VISIBLE
+# define __BSD_VISIBLE 1
+#endif /* !__BSD_VISIBLE */
#if !defined _NETBSD_SOURCE
# define _NETBSD_SOURCE
#endif /* !_NETBSD_SOURCE */
This and the related *BSD defined seem to be due to defining _POSIX_C_SOURCE which hides BSD defines. I guess Linux doesn't take _POSIX_C_SOURCE as seriously as BSD does.
Do you really need that?
Hey Peter, thanks for the report, I fixed it in d6bea86.