After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 130596 - Linuxism
Linuxism
Status: RESOLVED FIXED
Product: libgsf
Classification: Core
Component: General
unspecified
Other opensolaris
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2004-01-05 18:34 UTC by Morten Welinder
Modified: 2005-08-15 01:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2004-01-05 18:34:46 UTC
The fdopen test is bogus for a lot of reasons:

* "if !" is a bashism.
* The test tests the wrong things, really.

Use the new gnumeric test instead.



AC_MSG_CHECKING([whether to -D_POSIX_SOURCE for the fdopen prototype])
need_posix=no
echo '#include <stdio.h>' > conftest.h
if ! $CPP $CFLAGS conftest.h | grep '\<fdopen\>' > /dev/null ; then
	if $CPP $CFLAGS -D_POSIX_SOURCE conftest.h | grep '\<fdopen\>' > /dev/null
; then
		need_posix=yes
	fi
fi
AC_MSG_RESULT($need_posix)
rm -f conftest.h
Comment 1 alexander.winston 2004-01-30 13:51:44 UTC
Adding the portability keyword.
Comment 2 Dominic Lachowicz 2004-02-24 23:25:36 UTC
patch applied. this should be closed.