Ticket #226 (accepted defect) — at Version 4
Fix includes
Reported by: | metux | Owned by: | metux |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mc-core | Version: | 4.6.1 |
Keywords: | rework | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description (last modified by metux) (diff)
several .c file are missing some #include's, which are currently defined in global.h - very unclean ;-o
branch:226_fix_includes
changeset:851028508bcc2eb82b568351a16e2a553b43eb4e
Change History
comment:1 Changed 16 years ago by metux
- Owner set to metux
- Keywords review added
- Status changed from new to accepted
- Description modified (diff)
comment:2 Changed 16 years ago by winnie
Well I think we should check that we don't break other systems. Some #ifdef ... #else /*BSD*/ #endif statements are deleted without an replacement. Has anybody access to a BSD System?
comment:3 Changed 16 years ago by slyfox
Some thrown out code snippets look very ancient:
-#ifndef HAVE_MEMMOVE
-/* for Christophe */
-static void *memmove (void *dest, const void *src, size_t n)
-{
...
-}
-#endif /* !HAVE_MEMMOVE */
-/* Replacement for O_NONBLOCK */
-#ifndef O_NONBLOCK
-#ifdef O_NDELAY /* SYSV */
-#define O_NONBLOCK O_NDELAY
-#else /* BSD */
-#define O_NONBLOCK FNDELAY
-#endif /* !O_NDELAY */
-#endif /* !O_NONBLOCK */
-#if !defined(HAVE_SYS_TIME_H)
-struct timeval {
- long int tv_sec; /* seconds */
- long int tv_usec; /* microseconds */
-};
-#endif /* !HAVE_SYS_TIME_H */
etc.
Maybe we should have one global implicit config.h to hold that oddities/standard misfollowing?
BTW, what minimal C standard/OS standard compliance do we plan to support?