~ubuntu-branches/ubuntu/raring/python3.3/raring-proposed

« back to all changes in this revision

Viewing changes to debian/patches/hurd-disable-nonworking-constants.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-22 06:14:01 UTC
  • Revision ID: package-import@ubuntu.com-20120322061401-vvrgvw3nvi68rtqq
Tags: 3.3.0~a1-1
* Python 3.3.0 alpha1 release.
* Update to 20120321 from the trunk.
* Update debian/copyright.
* Build-depend on expat (>= 2.1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Comment out constant exposed on the API which are not implemented on
 
2
# DP: GNU/Hurd. They would not work at runtime anyway.
 
3
 
 
4
Index: b/Modules/posixmodule.c
 
5
===================================================================
 
6
--- a/Modules/posixmodule.c
 
7
+++ b/Modules/posixmodule.c
 
8
@@ -9768,12 +9768,14 @@
 
9
 #ifdef O_LARGEFILE
 
10
     if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
 
11
 #endif
 
12
+#ifndef __GNU__
 
13
 #ifdef O_SHLOCK
 
14
     if (ins(d, "O_SHLOCK", (long)O_SHLOCK)) return -1;
 
15
 #endif
 
16
 #ifdef O_EXLOCK
 
17
     if (ins(d, "O_EXLOCK", (long)O_EXLOCK)) return -1;
 
18
 #endif
 
19
+#endif
 
20
 #ifdef PRIO_PROCESS
 
21
     if (ins(d, "PRIO_PROCESS", (long)PRIO_PROCESS)) return -1;
 
22
 #endif
 
23
Index: b/Modules/socketmodule.c
 
24
===================================================================
 
25
--- a/Modules/socketmodule.c
 
26
+++ b/Modules/socketmodule.c
 
27
@@ -4896,9 +4896,11 @@
 
28
 #ifdef  SO_OOBINLINE
 
29
     PyModule_AddIntConstant(m, "SO_OOBINLINE", SO_OOBINLINE);
 
30
 #endif
 
31
+#ifndef __GNU__
 
32
 #ifdef  SO_REUSEPORT
 
33
     PyModule_AddIntConstant(m, "SO_REUSEPORT", SO_REUSEPORT);
 
34
 #endif
 
35
+#endif
 
36
 #ifdef  SO_SNDBUF
 
37
     PyModule_AddIntConstant(m, "SO_SNDBUF", SO_SNDBUF);
 
38
 #endif