diff xwrited-utmp-utmpx.c @ 18:4a5330979433

Modernize and improve build system Do not clobber CPPFLAGS, use XCPPFLAGS instead. Request POSIX:2004 headers and libraries. Remove support for FreeBSD < 9. Add support for DragonFly BSD.
author Guido Berhoerster <guido+xwrited@berhoerster.name>
date Wed, 14 Sep 2016 09:46:59 +0200
parents 52694b49dcc4
children
line wrap: on
line diff
--- a/xwrited-utmp-utmpx.c	Tue Sep 13 20:59:33 2016 +0200
+++ b/xwrited-utmp-utmpx.c	Wed Sep 14 09:46:59 2016 +0200
@@ -21,8 +21,6 @@
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#define	_XOPEN_SOURCE	600
-
 #include <glib.h>
 #include <stdlib.h>
 #include <string.h>
@@ -32,7 +30,9 @@
 #include <errno.h>
 #include <sys/time.h>
 
+#ifndef	DEV_PREFIX
 #define	DEV_PREFIX	"/dev/"
+#endif /* !DEV_PREFIX */
 
 static void
 utmp_write_entry(int fd, gboolean add)