[BACK]Return to patch-glib_genviron.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / glib2 / patches

Annotation of pkgsrc/devel/glib2/patches/patch-glib_genviron.c, Revision 1.1

1.1     ! triaxx      1: $NetBSD$
        !             2:
        !             3: Avoid the build failure with Clang on FreeBSD (see PR 54752).
        !             4: Set environ as a weak symbol (thanks to Joerg).
        !             5:
        !             6: --- glib/genviron.c.orig       2019-12-19 16:33:15.000000000 +0000
        !             7: +++ glib/genviron.c
        !             8: @@ -321,7 +321,11 @@ g_setenv (const gchar *variable,
        !             9:  /* According to the Single Unix Specification, environ is not
        !            10:   * in any system header, although unistd.h often declares it.
        !            11:   */
        !            12: +#if defined(__FreeBSD__)
        !            13: +extern __attribute__((__weak__)) char **environ;
        !            14: +#else
        !            15:  extern char **environ;
        !            16: +#endif
        !            17:  #endif
        !            18:
        !            19:  /**

CVSweb <webmaster@jp.NetBSD.org>