stat vs stat64 - ugly problem
FILE 1
#include "httpd.h"
#include <tcl.h>
int main() {
struct stat foo;
printf("size of stat __pad1 is %d\n", sizeof(foo.__pad1));
}
FILE 2
#include <tcl.h>
#include "httpd.h"
int main() {
struct stat foo;
printf("size of stat __pad1 is %d\n", sizeof(foo.__pad1));
}
These produce different code, because of #define _FILE_OFFSET_BITS 64
in /usr/include/apache-1.3/ap_config_auto.h.
I'm not sure exactly what problems this may cause, but I don't like
the looks of it... Interestingly (... or not) enough, that define
isn't created when building locally (version 1.3.23-dev)...
Hrm...
--
David N. Welton
Consulting: http://www.dedasys.com/
Free Software: http://people.debian.org/~davidw/
Apache Tcl: http://tcl.apache.org/
Personal: http://www.efn.org/~davidw/
Reply to: