equal
deleted
inserted
replaced
1 This patch provides Python ucred support. |
1 This patch provides Python ucred 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/ucred.c Python-2.6.4/Modules/ucred.c |
|
4 new file mode 100644 |
|
5 --- /dev/null |
4 --- /dev/null |
6 +++ Python-2.6.4/Modules/ucred.c |
5 +++ Python-2.6.4/Modules/ucred.c |
7 @@ -0,0 +1,390 @@ |
6 @@ -0,0 +1,390 @@ |
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 |
393 + |
392 + |
394 + Py_INCREF(&pyucred_type); |
393 + Py_INCREF(&pyucred_type); |
395 + |
394 + |
396 + PyModule_AddObject(m, "ucred", (PyObject *)&pyucred_type); |
395 + PyModule_AddObject(m, "ucred", (PyObject *)&pyucred_type); |
397 +} |
396 +} |
398 --- Python-2.7.6/setup.py.~2~ 2014-05-14 13:07:52.803164982 -0700 |
397 --- Python-2.7.7/setup.py.~2~ 2014-06-02 10:45:51.780497065 -0700 |
399 +++ Python-2.7.6/setup.py 2014-05-14 13:07:52.917214713 -0700 |
398 +++ Python-2.7.7/setup.py 2014-06-02 10:45:51.850419067 -0700 |
400 @@ -1536,6 +1536,13 @@ |
399 @@ -1540,6 +1540,13 @@ |
401 else: |
400 else: |
402 missing.append('dl') |
401 missing.append('dl') |
403 |
402 |
404 + # ucred module (Solaris) |
403 + # ucred module (Solaris) |
405 + ucred_inc = find_file('ucred.h', [], inc_dirs) |
404 + ucred_inc = find_file('ucred.h', [], inc_dirs) |