Bug 124665 - missing defines and typedefs
Summary: missing defines and typedefs
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: dietlibc
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-05-28 12:49 UTC by Harald Hoyer
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-01 19:36:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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...


Note You need to log in before you can comment on or make changes to this bug.