1 This patch provides Python dlpi support. |
1 This patch provides Python dlpi support. It may be contributed upstream at |
|
2 some point, but the suitability (or lack thereof) has not yet been determined. |
2 |
3 |
3 diff --git Python-2.6.4/Modules/dlpimodule.c Python-2.6.4/Modules/dlpimodule.c |
|
4 new file mode 100644 |
|
5 --- /dev/null |
4 --- /dev/null |
6 +++ Python-2.6.4/Modules/dlpimodule.c |
5 +++ Python-2.6.4/Modules/dlpimodule.c |
7 @@ -0,0 +1,1205 @@ |
6 @@ -0,0 +1,1205 @@ |
8 +/* |
7 +/* |
9 + * Permission is hereby granted, free of charge, to any person obtaining a copy |
8 + * Permission is hereby granted, free of charge, to any person obtaining a copy |
1208 + PyModule_AddIntConstant(mod, "UNKNOWN", DL_UNKNOWN); |
1207 + PyModule_AddIntConstant(mod, "UNKNOWN", DL_UNKNOWN); |
1209 + PyModule_AddIntConstant(mod, "UNBOUND", DL_UNBOUND); |
1208 + PyModule_AddIntConstant(mod, "UNBOUND", DL_UNBOUND); |
1210 + PyModule_AddIntConstant(mod, "IDLE", DL_IDLE); |
1209 + PyModule_AddIntConstant(mod, "IDLE", DL_IDLE); |
1211 + PyModule_AddIntConstant(mod, "SYSERR", DL_SYSERR); |
1210 + PyModule_AddIntConstant(mod, "SYSERR", DL_SYSERR); |
1212 +} |
1211 +} |
1213 --- Python-2.7.6/setup.py.~3~ 2014-05-14 13:10:30.979598710 -0700 |
1212 --- Python-2.7.7/setup.py.~3~ 2014-06-02 10:47:19.947081420 -0700 |
1214 +++ Python-2.7.6/setup.py 2014-05-14 13:10:31.006864446 -0700 |
1213 +++ Python-2.7.7/setup.py 2014-06-02 10:47:19.959427104 -0700 |
1215 @@ -1543,6 +1543,12 @@ |
1214 @@ -1547,6 +1547,12 @@ |
1216 exts.append( Extension('ucred', ['ucred.c'], |
1215 exts.append( Extension('ucred', ['ucred.c'], |
1217 libraries = ['tsol']) ) |
1216 libraries = ['tsol']) ) |
1218 |
1217 |
1219 + # dlpi module (Solaris) |
1218 + # dlpi module (Solaris) |
1220 + dlpi_inc = find_file('libdlpi.h', [], inc_dirs) |
1219 + dlpi_inc = find_file('libdlpi.h', [], inc_dirs) |