The guts of git
The guts of git
Posted Apr 14, 2005 12:19 UTC (Thu) by lyda (subscriber, #7429)Parent article: The guts of git
i can't get git 0.04 to compile on a redhat 7.3 box.
update-cache.c: In function `index_fd':
update-cache.c:26: warning: implicit declaration of function `close'
update-cache.c: In function `fill_stat_cache_info':
update-cache.c:68: structure has no member named `st_ctim'
update-cache.c:70: structure has no member named `st_mtim'
update-cache.c: In function `match_data':
update-cache.c:116: warning: implicit declaration of function `read'
update-cache.c: In function `main':
update-cache.c:282: warning: implicit declaration of function `unlink'
make: *** [update-cache.o] Error 1
Posted Apr 14, 2005 19:49 UTC (Thu)
by proski (subscriber, #104)
[Link]
I guess you need to define _GNU_SOURCE for the st_* fields and include unistd.h for missing declarations. Userspace programming with all those compatibility issues is so much harder than the kernel, it's it? i:-)
The guts of git