6b748570d0
Bump PKGREVISION to denote changes. `emacs -nw' gets a startup window, but emacs (with Xt) still dumps core. XXX: maybe much more prototypes are neccesary for LONG_LISP_OBJECT and XXX: VALBITS>=32 on LP64.
52 lines
1.4 KiB
Text
52 lines
1.4 KiB
Text
$NetBSD: patch-cb,v 1.4 2017/05/07 06:49:23 tsutsui Exp $
|
|
|
|
- use standard headers
|
|
- don't declare own errno
|
|
|
|
--- src/dispnew.c.orig 1995-02-03 01:21:28.000000000 +0000
|
|
+++ src/dispnew.c
|
|
@@ -59,6 +59,8 @@ the Free Software Foundation, 675 Mass A
|
|
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
+#include <stdlib.h>
|
|
+#include <unistd.h>
|
|
|
|
#include "lisp.h"
|
|
#include "termchar.h"
|
|
@@ -71,6 +73,7 @@ the Free Software Foundation, 675 Mass A
|
|
#include "dispextern.h"
|
|
#endif
|
|
#include "buffer.h"
|
|
+#include "process.h"
|
|
#include "frame.h"
|
|
#include "window.h"
|
|
#include "commands.h"
|
|
@@ -2047,7 +2050,6 @@ SIGTYPE
|
|
window_change_signal ()
|
|
{
|
|
int width, height;
|
|
- extern int errno;
|
|
int old_errno = errno;
|
|
|
|
get_frame_size (&width, &height);
|
|
@@ -2111,9 +2113,7 @@ do_pending_window_change ()
|
|
redisplay. Since this tries to resize windows, we can't call it
|
|
from a signal handler. */
|
|
|
|
-change_frame_size (frame, newheight, newwidth, pretend, delay)
|
|
- register FRAME_PTR frame;
|
|
- int newheight, newwidth, pretend;
|
|
+void change_frame_size (FRAME_PTR frame, int newheight, int newwidth, int pretend, int delay)
|
|
{
|
|
/* If we can't deal with the change now, queue it for later. */
|
|
if (delay)
|
|
@@ -2451,7 +2451,7 @@ char *terminal_type;
|
|
/* Then invoke its decoding routine to set up variables
|
|
in the terminal package */
|
|
|
|
-init_display ()
|
|
+void init_display (void)
|
|
{
|
|
#ifdef HAVE_X_WINDOWS
|
|
extern int display_arg;
|