login
Header Space

 
 

cygwin-latest: compile errors related to sockaddr_storage, dirent->d_type and dirent->d_ino

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Cc: Junio C Hamano <junkio@...>
Date: Wednesday, January 18, 2006 - 9:47 am

For reasons unknown, cygwin decided to use our sockaddr_storage.
As it is redefined to sockaddr_in it'd cause compilation errors in
cygwin headers. Fixed by first patch, which uses a more git-related
name (can we claim rights for the symbol, being first to use it? :-)

For the other, probably unrelated, reasons, they decided to leave
declarations of DT_* macros in dirent.h without providing dirent->d_type.
This is what NO_DTYPE in the 0002-patch is all about.

And on top of that, they removed dirent->d_ino (or probably replaced
it by __ino32, if at all).
BTW, can we somehow avoid using d_ino? It is referenced only in fsck-object=
s.c
Anyway, to workaround this I put

  COMPAT_CFLAGS +=3D -Dd_ino=3D__ino32

It helps, but surely is not the solution.

P.S. For all you poor souls on Win2k, my config.mak contains:

  NO_MMAP =3D YesPlease
  NO_DTYPE =3D YesPlease
  COMPAT_CFLAGS +=3D -Dd_ino=3D__ino32

Just to make it work (at least it's enough for me, even the tests run...)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cygwin-latest: compile errors related to sockaddr_storage, d..., Alex Riesen, (Wed Jan 18, 9:47 am)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 1:29 am)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 2:31 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 6:51 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 12:10 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 4:34 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 5:28 pm)
Re: cygwin-latest: compile errors related to sockaddr_storag..., Christopher Faylor, (Thu Jan 19, 5:51 pm)
speck-geostationary