mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
FreeBSD's util.h is libutil.h.
This commit is contained in:
parent
65125c7276
commit
cf77c80b93
7
Makefile
7
Makefile
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.28 2007-10-19 11:10:34 nicm Exp $
|
||||
# $Id: Makefile,v 1.29 2007-10-19 20:47:09 nicm Exp $
|
||||
|
||||
.SUFFIXES: .c .o .y .h
|
||||
.PHONY: clean
|
||||
@ -55,6 +55,11 @@ LDFLAGS+= -pg
|
||||
.endif
|
||||
LIBS+= -lutil -lncurses
|
||||
|
||||
# FreeBSD
|
||||
.if ${OS} == "FreeBSD"
|
||||
CFLAGS+= -DUSE_LIBUTIL_H
|
||||
.endif
|
||||
|
||||
OBJS= ${SRCS:S/.c/.o/:S/.y/.o/}
|
||||
|
||||
CLEANFILES= ${PROG} *.o .depend *~ ${PROG}.core *.log
|
||||
|
3
server.c
3
server.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.28 2007-10-19 10:21:35 nicm Exp $ */
|
||||
/* $Id: server.c,v 1.29 2007-10-19 20:47:09 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -33,7 +33,6 @@
|
||||
#include <syslog.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
#include <util.h>
|
||||
|
||||
#include "tmux.h"
|
||||
|
||||
|
7
window.c
7
window.c
@ -1,4 +1,4 @@
|
||||
/* $Id: window.c,v 1.19 2007-10-04 20:33:16 nicm Exp $ */
|
||||
/* $Id: window.c,v 1.20 2007-10-19 20:47:09 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -26,7 +26,12 @@
|
||||
#include <string.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef USE_LIBUTIL_H
|
||||
#include <libutil.h>
|
||||
#else
|
||||
#include <util.h>
|
||||
#endif
|
||||
|
||||
#include "tmux.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user