Annotation of pkgsrc/lang/python312/patches/patch-Modules_socketmodule.c, revision 1.2

1.2     ! jperkin     1: $NetBSD: patch-Modules_socketmodule.c,v 1.1 2023/10/02 20:07:15 adam Exp $
1.1       adam        2: 
1.2     ! jperkin     3: SunOS needs _XOPEN_SOURCE for sendmsg bits that are now required.
        !             4: 
        !             5: --- Modules/socketmodule.c.orig        2023-10-02 11:48:14.000000000 +0000
1.1       adam        6: +++ Modules/socketmodule.c
1.2     ! jperkin     7: @@ -89,6 +89,9 @@ Local naming conventions:
        !             8:  #  define Py_BUILD_CORE_MODULE 1
        !             9:  #endif
        !            10:  
        !            11: +#ifdef __sun
        !            12: +#define _XOPEN_SOURCE 600
        !            13: +#endif
        !            14:  #ifdef __APPLE__
        !            15:  // Issue #35569: Expose RFC 3542 socket options.
        !            16:  #define __APPLE_USE_RFC_3542 1
        !            17: @@ -5655,7 +5658,7 @@ socket_sethostname(PyObject *self, PyObj
1.1       adam       18:      Py_buffer buf;
                     19:      int res, flag = 0;
                     20:  
                     21: -#ifdef _AIX
                     22: +#if defined(_AIX) || (defined(__sun) && PKGSRC_OPSYS_VERSION < 051100)
                     23:  /* issue #18259, not declared in any useful header file */
                     24:  extern int sethostname(const char *, size_t);
                     25:  #endif

CVSweb <webmaster@jp.NetBSD.org>