# HG changeset patch # User Matti Hamalainen # Date 1290305815 -7200 # Node ID 7ba4e371e9a6a2e515ce83372c554b8bb09d23b1 # Parent 3ccfe8902fd500d81bf357fea4e497d92bca306b Add Makefile for OpenBSD, and specific #ifdef'd includes for the platform. diff -r 3ccfe8902fd5 -r 7ba4e371e9a6 Makefile.openbsd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.openbsd Sun Nov 21 04:16:55 2010 +0200 @@ -0,0 +1,20 @@ +# +# Configuration settings for Linux and generic UNIX +# See other Makefile.* files for more options. +# + +# C-compiler, flags and linker flags +CC=gcc +CFLAGS=-DHAVE_STRING_H -DHAVE_INT_TYPES -DHAVE_NETINET_IN_H -DHAVE_NCURSES_H +LDFLAGS=-lncurses + +#CFLAGS += -DHAVE_STDINT_H +#CFLAGS += -DHAVE_SYS_TYPES_H + +# Miscellaneous +BINPATH= +OBJPATH= +EXEEXT= + + +include Makefile.gen diff -r 3ccfe8902fd5 -r 7ba4e371e9a6 libnnchat.h --- a/libnnchat.h Sun Nov 21 04:14:08 2010 +0200 +++ b/libnnchat.h Sun Nov 21 04:16:55 2010 +0200 @@ -13,6 +13,9 @@ #include #else #include +#ifdef HAVE_NETINET_IN_H +#include +#endif #include #include #endif diff -r 3ccfe8902fd5 -r 7ba4e371e9a6 nnchat.c --- a/nnchat.c Sun Nov 21 04:14:08 2010 +0200 +++ b/nnchat.c Sun Nov 21 04:16:55 2010 +0200 @@ -16,7 +16,11 @@ #else #include #endif +#ifdef HAVE_NCURSES_H +#include +#else #include +#endif #ifdef __WIN32 #define SET_CONFIG_FILE "nnchat.txt"