Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CC ?= cc
CFLAGS ?= -O2
CFLAGS += -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes
CFLAGS += -std=c99 -Wall -Wunused -Wmissing-prototypes -Wstrict-prototypes

PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
Expand Down
6 changes: 4 additions & 2 deletions xbanish.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#define _POSIX_C_SOURCE 2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's better to define feature test macros in the Makefile under CPPFLAGS variable. But since it's a single file source, probably doesn't matter much.


#include <err.h>
#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <strings.h>

#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/extensions/sync.h>
#include <X11/extensions/Xfixes.h>
Expand Down