diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/sysdep.c | 11 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d3c5ffaff58..1ad809dffab 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-07-22 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * sysdep.c (frame) [__FreeBSD__]: #define to freebsd_frame | ||
| 4 | when including <sys/user.h>, to prevent Sparc/ARM machine/frame.h | ||
| 5 | from messing up Emacs's 'struct frame' (Bug#14923). | ||
| 6 | |||
| 1 | 2013-07-21 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2013-07-21 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 8 | ||
| 3 | * alloc.c (make_save_ptr_ptr): Define this function. | 9 | * alloc.c (make_save_ptr_ptr): Define this function. |
diff --git a/src/sysdep.c b/src/sysdep.c index 2739583456a..11a6f4a76ce 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -42,9 +42,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 42 | #endif | 42 | #endif |
| 43 | 43 | ||
| 44 | #ifdef __FreeBSD__ | 44 | #ifdef __FreeBSD__ |
| 45 | #include <sys/user.h> | 45 | /* Sparc/ARM machine/frame.h has 'struct frame' which conflicts with Emacs's |
| 46 | #include <sys/resource.h> | 46 | 'struct frame', so rename it. */ |
| 47 | #include <math.h> | 47 | # define frame freebsd_frame |
| 48 | # include <sys/user.h> | ||
| 49 | # undef frame | ||
| 50 | |||
| 51 | # include <sys/resource.h> | ||
| 52 | # include <math.h> | ||
| 48 | #endif | 53 | #endif |
| 49 | 54 | ||
| 50 | #ifdef WINDOWSNT | 55 | #ifdef WINDOWSNT |