mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
- Fix brokenness on SPARC platforms
Reported by: tabthorpe Approved by: portmgr
This commit is contained in:
parent
8f2ef95e34
commit
d6117118ea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315773
@ -3,29 +3,24 @@ $FreeBSD$
|
||||
|
||||
--- src/sysdep.c.orig
|
||||
+++ src/sysdep.c
|
||||
@@ -37,6 +37,20 @@
|
||||
#include "sysselect.h"
|
||||
#include "blockinput.h"
|
||||
@@ -46,7 +46,15 @@
|
||||
#endif
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
#ifdef __FreeBSD__
|
||||
+#include <sys/sysctl.h>
|
||||
+/* machine/frame.h in Sparc/ARM has 'struct frame' which conflicts with Emacs' 'struct frame', so rename it */
|
||||
+#if defined(__sparc__) || defined(__arm__)
|
||||
+#define frame freebsd_sparc_frame
|
||||
+#endif
|
||||
+#include <sys/user.h>
|
||||
#include <sys/user.h>
|
||||
+#if defined(__sparc__) || defined(__arm__)
|
||||
+#undef frame
|
||||
+#endif
|
||||
+#include <sys/resource.h>
|
||||
+#include <math.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef WINDOWSNT
|
||||
#define read sys_read
|
||||
#define write sys_write
|
||||
@@ -2529,6 +2543,40 @@
|
||||
return proclist;
|
||||
#include <sys/resource.h>
|
||||
#include <math.h>
|
||||
#endif
|
||||
@@ -2691,6 +2699,40 @@
|
||||
return proclist;
|
||||
}
|
||||
|
||||
+#elif defined (__FreeBSD__)
|
||||
@ -65,7 +60,7 @@ $FreeBSD$
|
||||
/* The WINDOWSNT implementation is in w32.c.
|
||||
The MSDOS implementation is in dosfns.c. */
|
||||
#elif !defined (WINDOWSNT) && !defined (MSDOS)
|
||||
@@ -3079,6 +3127,176 @@
|
||||
@@ -3402,6 +3444,176 @@
|
||||
return attrs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user