[pypy-commit] pypy default: Add includes and a declaration to reduce warnings

amauryfa noreply at buildbot.pypy.org
Wed Jun 20 21:17:21 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r55730:41c5525655b1
Date: 2012-06-20 21:04 +0200
http://bitbucket.org/pypy/pypy/changeset/41c5525655b1/

Log:	Add includes and a declaration to reduce warnings

diff --git a/pypy/rlib/rlocale.py b/pypy/rlib/rlocale.py
--- a/pypy/rlib/rlocale.py
+++ b/pypy/rlib/rlocale.py
@@ -29,7 +29,7 @@
             HAVE_LIBINTL = False
 
 class CConfig:
-    includes = ['locale.h', 'limits.h', 'ctype.h']
+    includes = ['locale.h', 'limits.h', 'ctype.h', 'wchar.h']
     libraries = libraries
 
     if HAVE_LANGINFO:
diff --git a/pypy/rpython/module/ll_os.py b/pypy/rpython/module/ll_os.py
--- a/pypy/rpython/module/ll_os.py
+++ b/pypy/rpython/module/ll_os.py
@@ -144,7 +144,7 @@
     # XXX many of these includes are not portable at all
     includes += ['dirent.h', 'sys/stat.h',
                  'sys/times.h', 'utime.h', 'sys/types.h', 'unistd.h',
-                 'signal.h', 'sys/wait.h', 'fcntl.h']
+                 'signal.h', 'sys/wait.h', 'fcntl.h', 'pty.h']
 else:
     includes += ['sys/utime.h']
 
diff --git a/pypy/translator/c/src/signals.h b/pypy/translator/c/src/signals.h
--- a/pypy/translator/c/src/signals.h
+++ b/pypy/translator/c/src/signals.h
@@ -46,6 +46,7 @@
 void pypysig_default(int signum); /* signal will do default action (SIG_DFL) */
 void pypysig_setflag(int signum); /* signal will set a flag which can be
                                      queried with pypysig_poll() */
+void pypysig_reinstall(int signum);
 int pypysig_set_wakeup_fd(int fd);
 
 /* utility to poll for signals that arrived */


More information about the pypy-commit mailing list