unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Manuel Giraud <manuel.giraud@univ-nantes.fr>
To: Dan Nicolaescu <dann@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: machine specific patch (OpenBSD)
Date: Wed, 13 Jul 2011 17:22:33 +0200	[thread overview]
Message-ID: <87wrfmb3ye.fsf@univ-nantes.fr> (raw)
In-Reply-To: <yxqwrfmgs6x.fsf@fencepost.gnu.org> (Dan Nicolaescu's message of "Wed, 13 Jul 2011 10:40:06 -0400")

Dan Nicolaescu <dann@gnu.org> 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	other threads:[~2011-07-13 15:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-13 14:12 machine specific patch (OpenBSD) Manuel Giraud
2011-07-13 14:40 ` Dan Nicolaescu
2011-07-13 15:22   ` Manuel Giraud [this message]
2011-07-13 23:00     ` Paul Eggert
2011-07-19  9:52       ` Manuel Giraud
2011-07-19 17:44         ` Paul Eggert
2011-07-20 11:31           ` Manuel Giraud

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wrfmb3ye.fsf@univ-nantes.fr \
    --to=manuel.giraud@univ-nantes.fr \
    --cc=dann@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).