mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
e9277ce26f
. trim Makefile header; . use new MASTER_SITES (SF); . refine COMMENT a little; . incorporate USES=iconv (which is needed since 3.0); . optionify using DOCS; . mute mkdir; . use utmp.h -> utmpx.h for OSVESION>900007.
25 lines
532 B
C
25 lines
532 B
C
--- mapchan.c.orig 2008-09-12 01:47:59.000000000 +0500
|
|
+++ mapchan.c 2013-05-26 14:55:43.000000000 +0400
|
|
@@ -15,7 +15,12 @@
|
|
#include <stdlib.h>
|
|
#include <signal.h>
|
|
#include <libgen.h>
|
|
+#ifdef __FreeBSD__
|
|
+#include <libutil.h>
|
|
+#include <sys/ioctl.h>
|
|
+#else
|
|
#include <pty.h>
|
|
+#endif
|
|
#include <utmp.h>
|
|
#ifdef SYSLOG
|
|
#include <syslog.h>
|
|
@@ -50,7 +55,7 @@ char *DEFAULT_LOGFILE = "mapchan.log";
|
|
#endif
|
|
|
|
#ifndef CPATH
|
|
- #define CPATH "/etc/mapchan"
|
|
+ #define CPATH "/usr/local/etc/mapchan"
|
|
#endif
|
|
|
|
#define BUFSIZE 32*1024
|