This is the mail archive of the 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]

V3 PATCH: Update Solaris defines

On Solaris 2.8, eb39.C was failing.  This was a regression from GCC

The reason is that V3 was defining _LARGEFILE64_SOURCE, but not
_LARGEFILE_SOURCE.  This makes include <stdio.h> not work on Solaris
2.8 because off64_t does not get defined, but:

  extern int	fseeko64(FILE *, off64_t, int);

does get declared.  Because Solaris 2.7 and 2.8 share a configuration
file, I've changed Solaris 2.7 as well.  Hopefully that won't hurt

It may be that this patch is needed on Solaris 2.[56] as well, but I
don't have access to any such systems.

The symptom is that eb39 fails with a parse error.  And, near the top
of stdio.h, you have a definition of off64_t that is dependent on both

Tested on sparc-sun-solaris2.8, applied on the mainline and on the

Mark Mitchell         
CodeSourcery, LLC     

2001-05-07  Mark Mitchell  <>

	* config/os/solaris/solaris2.7/bits/os_defines.h
	(_LARGEFILE_SOURCE): Define it.

Index: os_defines.h
RCS file: /cvs/gcc/gcc/libstdc++-v3/config/os/solaris/solaris2.7/bits/os_defines.h,v
retrieving revision 1.5
diff -c -p -r1.5 os_defines.h
*** os_defines.h	2000/11/13 00:25:40	1.5
--- os_defines.h	2001/05/08 02:59:43
*** 33,38 ****
--- 33,39 ----
  // Need these to get sane definitions, esp. of 64-bit types and typedefs.
  #define _XOPEN_SOURCE        500
+ #define _LARGEFILE_SOURCE    1
  #define _LARGEFILE64_SOURCE  1
  #define __EXTENSIONS__

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