This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

probable libf2c patch for 1.1.1


This change was applied to the trunk but not to the branch.  It's
lurking in my 1.1 directory, presumably unapproved -- I don't
remember.  Without it `tempnam' can fail to be declared, presumably
bad news on 64-bit targets when its pointer return value is used.  It
should probably be applied on the release branch.

1998-10-12  Dave Love  <fx@gnu.org>

	* libI77/open.c (_XOPEN_SOURCE): Define.

Index: open.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libf2c/libI77/open.c,v
retrieving revision 1.3.4.1
diff -p -c -r1.3.4.1 open.c
*** open.c	1998/09/30 02:59:33	1.3.4.1
--- open.c	1998/11/12 18:37:36
***************
*** 1,3 ****
--- 1,6 ----
+ /* Define _XOPEN_SOURCE to get tempnam prototype with glibc et al --
+    more general than _INCLUDE_XOPEN_SOURCE used elsewhere `for HP-UX'.  */
+ #define _XOPEN_SOURCE 1
  #include "f2c.h"
  #include "fio.h"
  #include <string.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]