]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Small changes to help SunOS4.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 12 Dec 2006 15:46:12 +0000 (15:46 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 12 Dec 2006 15:46:12 +0000 (15:46 +0000)
- ln without -f, it checks if the file exists anway.
- check AC_C_INLINE after setting flags, it changes the results.
- INLINE used for ldns_power.

Makefile.in
configure.ac
ldns/util.h.in

index f5c07ce39b59f67755be83d0a881f185a2044a2f..3dc4afd552af166c1e48c53e78c3e6e5afe3d215 100644 (file)
@@ -88,7 +88,7 @@ libldns.la:   $(LIBDNS_OBJECTS)
 
 copy-headers:
                if [ ! -d include ] ; then mkdir include ; fi ;
-               if [ ! -d include/ldns ] ; then ln -sf ../ldns ./include/ldns ; fi ;
+               if [ ! -d include/ldns ] ; then ln -s ../ldns ./include/ldns ; fi ;
                for i in $(LIBDNS_HEADERS); do \
                        if [ $(srcdir)/ldns/$$i -nt ./include/ldns/$$i ] ; then \
                                MVPROG=/bin/cp $(INSTALL) -m 644 $$i ./include/ldns/; \
index a5ce39ccd035a5cbe5c2dc72eff74a2a98865d9a..3219434f9eec57223b5e8b006c627b494a426854 100644 (file)
@@ -46,11 +46,11 @@ fi
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
-AC_C_INLINE
 AC_LANG_C
 AC_TYPE_SIZE_T
 CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
 CHECK_COMPILER_FLAG(std=c99, [CFLAGS="$CFLAGS -std=c99"], [CFLAGS="$CFLAGS -ansi"])
+AC_C_INLINE
 AC_CHECK_TYPE(int8_t, char)
 AC_CHECK_TYPE(int16_t, short)
 AC_CHECK_TYPE(int32_t, int)
index fb6f41e97618b3de9329893d3f6fe2228b9d1400..d67175845960cfde260af5497afea90ba09a2851 100644 (file)
@@ -199,7 +199,7 @@ void ldns_set_bit(uint8_t *byte, int bit_nr, bool value);
  * (or 1 of b < 1)
  */
 /*@unused@*/
-static inline long
+INLINE long
 ldns_power(long a, long b) {
        long result = 1;
        while (b > 0) {