dateutils icon indicating copy to clipboard operation
dateutils copied to clipboard

Needs __BSD_VISIBLE defined on FreeBSD

Open resuna opened this issue 7 years ago • 1 comments

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?

resuna avatar Apr 19 '18 16:04 resuna

Hey Peter, thanks for the report, I fixed it in d6bea86.

hroptatyr avatar Apr 20 '18 06:04 hroptatyr