[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.2

1.2     ! wiz         1: $NetBSD: patch-glib_genviron.c,v 1.1 2019/12/29 19:40:56 triaxx Exp $
1.1       triaxx      2:
                      3: Avoid the build failure with Clang on FreeBSD (see PR 54752).
                      4: Set environ as a weak symbol (thanks to Joerg).
                      5:
1.2     ! wiz         6: --- glib/genviron.c.orig       2020-02-27 16:12:52.000000000 +0000
1.1       triaxx      7: +++ glib/genviron.c
1.2     ! wiz         8: @@ -329,8 +329,12 @@ g_setenv (const gchar *variable,
1.1       triaxx      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;
1.2     ! wiz        16:  #endif
1.1       triaxx     17: +#endif
                     18:
                     19:  /**
1.2     ! wiz        20:   * g_unsetenv:

CVSweb <webmaster@jp.NetBSD.org>