emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: machine specific patch (OpenBSD)


From: Manuel Giraud
Subject: Re: machine specific patch (OpenBSD)
Date: Wed, 13 Jul 2011 17:22:33 +0200
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/23.3 (berkeley-unix)

Dan Nicolaescu <address@hidden> writes:

> How about showing the patches and not a link to them ?  But before
> doing that please update the patches.  A quick look at one of them
> showed that it defining macros that are no longer in use in the tree.

Ok, so far I've updated those:
--8<---------------cut here---------------start------------->8---
=== modified file 'src/minibuf.c'
--- src/minibuf.c       2011-06-24 21:25:22 +0000
+++ src/minibuf.c       2011-07-13 13:50:55 +0000
@@ -19,6 +19,7 @@
 
 
 #include <config.h>
+#include <errno.h>
 #include <stdio.h>
 #include <setjmp.h>
 
@@ -246,15 +247,19 @@
   size = 100;
   len = 0;
   line = (char *) xmalloc (size);
-  while ((s = fgets (line + len, size - len, stdin)) != NULL
-        && (len = strlen (line),
-            len == size - 1 && line[len - 1] != '\n'))
-    {
+ again:
+  if ((s = fgets (line + len, size - len, stdin)) != NULL) {
+    len = strlen (line);
+    if (len > 0 && line[len - 1] != '\n') {
       if (STRING_BYTES_BOUND / 2 < size)
        memory_full (SIZE_MAX);
       size *= 2;
       line = (char *) xrealloc (line, size);
+      goto again;
     }
+  } else if (errno == EINTR) {
+    goto again;
+  }
 
   if (s)
     {

=== modified file 'src/s/openbsd.h'
--- src/s/openbsd.h     2011-01-15 23:16:57 +0000
+++ src/s/openbsd.h     2011-07-13 13:28:30 +0000
@@ -3,3 +3,4 @@
 /* The same as NetBSD.  Note there are differences in configure.  */
 #include "netbsd.h"
 
+#define BROKEN_SIGIO

--8<---------------cut here---------------end--------------->8---

I didn't include others because they are related to mips64 and alpha
arch and i cannot test it.

-- 
Manuel Giraud



reply via email to

[Prev in Thread] Current Thread [Next in Thread]