about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--freebsd/Makefile2
-rw-r--r--xombrero.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/freebsd/Makefile b/freebsd/Makefile
index 011354c..cf65ea8 100644
--- a/freebsd/Makefile
+++ b/freebsd/Makefile
@@ -9,7 +9,7 @@ LIBS+= libsoup-2.4 gnutls gthread-2.0
 LDADD= -lutil -lgcrypt
 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
-CFLAGS+= $(GTK_CFLAGS) -O2 -Wall -pthread
+CFLAGS+= $(GTK_CFLAGS) -O2 -Wall -pthread -I. -I..
 LDFLAGS+= $(GTK_LDFLAGS) -pthread
 
 PREFIX?= /usr/local
diff --git a/xombrero.h b/xombrero.h
index d5da4d9..64ac54a 100644
--- a/xombrero.h
+++ b/xombrero.h
@@ -48,6 +48,8 @@ u_int32_t	arc4random_uniform(u_int32_t);
 #include <sys/tree.h>
 #include <X11/Xlib.h>
 #include <sys/un.h>
+#include <sys/param.h>
+#define LOGIN_NAME_MAX MAXLOGNAME
 #elif defined(__OpenBSD__)
 #include <util.h>
 #include <sys/tree.h>