diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-02-08 14:47:02 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-02-08 14:47:02 +0800 |
commit | b09edb49393a92f19a8914856ae2fcb6291ab836 (patch) | |
tree | b528b057f6b6f0832163a3c48c3a8b52147a7d5b | |
parent | 90b250b7394d65df97db7353fcf6579028b7f8d8 (diff) | |
download | freebsd-ports-gnome-b09edb49393a92f19a8914856ae2fcb6291ab836.tar.gz freebsd-ports-gnome-b09edb49393a92f19a8914856ae2fcb6291ab836.tar.zst freebsd-ports-gnome-b09edb49393a92f19a8914856ae2fcb6291ab836.zip |
- fix build for FreeBSD 9.x
-rw-r--r-- | editors/emacs.app/files/patch-src-filelock.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/editors/emacs.app/files/patch-src-filelock.c b/editors/emacs.app/files/patch-src-filelock.c new file mode 100644 index 000000000000..0359acf0ad4d --- /dev/null +++ b/editors/emacs.app/files/patch-src-filelock.c @@ -0,0 +1,39 @@ +--- src/filelock.c.orig 2006-03-11 05:06:04.000000000 +0100 ++++ src/filelock.c 2012-02-08 07:11:31.000000000 +0100 +@@ -63,7 +63,17 @@ + + #ifdef CLASH_DETECTION + ++#if __FreeBSD_version >= 900007 ++#include <utmpx.h> ++#define ut_time ut_tv.tv_sec ++#define utmpname(f) setutxdb(UTXDB_LOG,f) ++#define setutent setutxent ++#define getutent getutxent ++#define endutent endutxent ++#define getutid getutxid ++#else + #include <utmp.h> ++#endif + + #if !defined (S_ISLNK) && defined (S_IFLNK) + #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +@@ -252,13 +262,17 @@ + the first reboot record otherwise. + Ignore all reboot records on or before BOOT_TIME. + Success is indicated by setting BOOT_TIME to a larger value. */ +- + void + get_boot_time_1 (filename, newest) + char *filename; + int newest; + { ++#if __FreeBSD_version >= 900007 ++ struct utmpx ut, *utp; ++#else + struct utmp ut, *utp; ++#endif ++ + int desc; + + if (filename) |