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

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/devel/glib2/patches/patch-glib_genviron.c between version 1.1 and 1.2

version 1.1, 2019/12/29 19:40:56 version 1.2, 2020/03/04 15:11:48
Line 3  $NetBSD$
Line 3  $NetBSD$
 Avoid the build failure with Clang on FreeBSD (see PR 54752).  Avoid the build failure with Clang on FreeBSD (see PR 54752).
 Set environ as a weak symbol (thanks to Joerg).  Set environ as a weak symbol (thanks to Joerg).
   
 --- glib/genviron.c.orig        2019-12-19 16:33:15.000000000 +0000  --- glib/genviron.c.orig        2020-02-27 16:12:52.000000000 +0000
 +++ glib/genviron.c  +++ glib/genviron.c
 @@ -321,7 +321,11 @@ g_setenv (const gchar *variable,  @@ -329,8 +329,12 @@ g_setenv (const gchar *variable,
  /* According to the Single Unix Specification, environ is not   /* According to the Single Unix Specification, environ is not
   * in any system header, although unistd.h often declares it.    * in any system header, although unistd.h often declares it.
   */    */
Line 13  Set environ as a weak symbol (thanks to 
Line 13  Set environ as a weak symbol (thanks to 
 +extern __attribute__((__weak__)) char **environ;  +extern __attribute__((__weak__)) char **environ;
 +#else  +#else
  extern char **environ;   extern char **environ;
 +#endif  
  #endif   #endif
   +#endif
   
  /**   /**
     * g_unsetenv:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>