view src/release-octave-1-gnulib.patch @ 6510:4b8764444acb

Create common github call define and start using it * Makefile.in: add GITHUB_PKG_UPDATE * src/blas_switch.mk, src/double-conversion.mk, src/libffi.mk, src/libgeotiff.mk, src/libmodbus.mk, src/libproxy.mk, src/librsvg.mk, src/libsndfile.mk, src/libsodium.mk, src/libvpx.mk, src/netcdf.mk, src/of-statistics.mk, src/openblas.mk, src/opencv.mk, src/openjpeg.mk, src/openlibm.mk, src/paho-mqtt-c.mk, src/pcre2.mk, src/portaudio.mk, src/rapidjson.mk, src/rtmidi.mk, src/suitesparse.mk, src/sundials-ida.mk, src/wt.mk, src/wxwidgets.mk, src/yasm.mk, src/zeromq.mk : call GITHUB_PKG_UPDATE in update
author John Donoghue <john.donoghue@ieee.org>
date Tue, 08 Nov 2022 09:37:16 -0500
parents 039563087c70
children
line wrap: on
line source

diff -uNr a/libgnu/unistd.in.h b/libgnu/unistd.in.h
--- a/libgnu/unistd.in.h	2016-06-18 18:47:32.000000000 -0400
+++ b/libgnu/unistd.in.h	2016-06-23 18:45:42.410781867 -0400
@@ -734,7 +734,7 @@
    Null terminate it if the name is shorter than LEN.
    If the host name is longer than LEN, set errno = EINVAL and return -1.
    Return 0 if successful, otherwise set errno and return -1.  */
-# if @UNISTD_H_HAVE_WINSOCK2_H@
+# if !@HAVE_GETHOSTNAME@ && @UNISTD_H_HAVE_WINSOCK2_H@
 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 #   undef gethostname
 #   define gethostname rpl_gethostname