Commit: a92255b1af58b9ee1a1f474e420711a251995858
Parent: 673ece171ea8a6c6c176dde75288bed34bb5e4f7
Author: Randy Palamar
Date:   Mon, 22 Apr 2024 09:23:14 -0600
fix build with broken glibc headers and delete const garbage
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/build.sh b/build.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 cflags="-O3 -std=c99 -Wall -pedantic"
-cflags="$cflags -D_POSIX_C_SOURCE=200808L"
+cflags="$cflags -D_XOPEN_SOURCE=500"
 cflags="$cflags -I /usr/X11R6/include"
 
 ldflags="-lX11"
diff --git a/status.c b/status.c
@@ -13,11 +13,11 @@
 #define STATUSLEN ((LEN(blks) - 1) * BLOCKLEN + 1)
 
 struct Block {
-	size_t (*const fn)(struct Block *b);
+	size_t (*fn)(struct Block *b);
 	const char *fmt;
-	const int interval;
-	const int signal;
-	const void *arg;
+	int interval;
+	int signal;
+	void *arg;
 	char curstr[BLOCKLEN];
 	char prevstr[BLOCKLEN];
 	size_t len;