Bug 124665

Summary: missing defines and typedefs
Product: [Fedora] Fedora Reporter: Harald Hoyer <harald>
Component: dietlibcAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-01 19:36:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harald Hoyer 2004-05-28 12:49:21 UTC
to compile some apps with diet, I had to add this:
/* from stdio.h */
#define __FILE FILE
/* from sys/cdefs.h */
# define __BEGIN_NAMESPACE_STD
# define __END_NAMESPACE_STD
# define __USING_NAMESPACE_STD(name)
# define __BEGIN_NAMESPACE_C99
# define __END_NAMESPACE_C99
# define __USING_NAMESPACE_C99(name)
# define __attribute_pure__ __attribute__ ((__pure__))
/* from bits/types.h */
typedef char *caddr_t;

typedef unsigned char uchar;
typedef unsigned char u_char;
typedef unsigned short ushort;


maybe this should be part of the dietlibc headers..

Comment 1 Jeremy Katz 2004-06-01 19:36:19 UTC
ISTR that these are GNU extensions.  Felix is fairly against adding
GNU extensions in general, preferring that people use the real types.

Comment 2 Harald Hoyer 2004-06-02 08:29:19 UTC
well, then try to compile e.g. sed without those defines...