mdadm fix compilation for uClibc
2008-12-08 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> * Makefile (dadm.uclibc): Remove misspelled and unneeded rule. * md5.h: Include stdint.h for uClibc. * mdadm.h: uClibc defines __UCLIBC__. If uClibc has LFS off then use lseek instead of lseek64. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
1a0ee0baf0
commit
2df1f26911
3
Makefile
3
Makefile
|
@ -106,9 +106,6 @@ mdadm.static : $(OBJS) $(STATICOBJS)
|
|||
mdadm.tcc : $(SRCS) mdadm.h
|
||||
$(TCC) -o mdadm.tcc $(SRCS)
|
||||
|
||||
dadm.uclibc : $(SRCS) mdadm.h
|
||||
$(UCLIBC_GCC) -DUCLIBC -DHAVE_STDINT_H -o mdadm.uclibc $(SRCS) $(STATICSRC)
|
||||
|
||||
mdadm.klibc : $(SRCS) mdadm.h
|
||||
rm -f $(OBJS)
|
||||
gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32 $(CFLAGS) $(SRCS)
|
||||
|
|
2
md5.h
2
md5.h
|
@ -27,7 +27,7 @@
|
|||
#if HAVE_INTTYPES_H
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
#if HAVE_STDINT_H || _LIBC
|
||||
#if HAVE_STDINT_H || _LIBC || defined __UCLIBC__
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue