1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build when usng clang.

This commit is contained in:
Cy Schubert 2013-05-26 17:10:31 +00:00
parent ec645f596b
commit 25d82f9122
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319122
2 changed files with 12 additions and 1 deletions

View File

@ -28,7 +28,7 @@ CONFIGURE_ARGS+= --with-logdir="${SUDOSH_LOGDIR}"
.else
CONFIGURE_ARGS+= --with-logdir=/var/log/sudosh
.endif
CFLAGS+= -lutil
LDFLAGS+= -lutil
MAN1= sudosh.1
MAN5= sudosh.conf.5

View File

@ -0,0 +1,11 @@
--- src/replay.c.orig 2010-07-09 13:37:01.000000000 -0700
+++ src/replay.c 2013-05-26 10:07:55.720227505 -0700
@@ -238,7 +238,7 @@
strncpy(s->randstr, randstr, BUFSIZ - 1);
strftime(s->date, 20, "%m/%d/%Y %H:%M:%S", localtime(&s->e));
snprintf(s->id, BUFSIZ - 1, "%s%c%s%c%ld%c%s", s->from,
- config_option.fdl, s->to, config_option.fdl, s->e,
+ config_option.fdl, s->to, config_option.fdl, (long)s->e,
config_option.fdl, s->randstr);
link_session(s);