openbsd tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7729 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2000cf4019
commit
6c20f553d2
|
@ -151,6 +151,10 @@ nodist_freeswitch_SOURCES = src/include/switch_version.h
|
|||
freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS)
|
||||
freeswitch_LDFLAGS = $(AM_LDFLAGS) -rpath $(libdir)
|
||||
freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
|
||||
if ADD_LIBEDIT
|
||||
freeswitch_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
||||
freeswitch_LDADD += libs/libedit/src/.libs/libedit.a
|
||||
endif
|
||||
|
||||
|
||||
if ADD_LIBEDIT
|
||||
|
|
|
@ -172,7 +172,7 @@ src/jsautocfg.h: jscpucfg
|
|||
jscpucfg.o: src/jscpucfg.c
|
||||
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
|
||||
jscpucfg: jscpucfg.o
|
||||
@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o jscpucfg jscpucfg.o $(LIBS)
|
||||
@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o jscpucfg jscpucfg.o $(LIBS) $(CLI_LIBS)
|
||||
src/jsopcode.h src/jsopcode.c: src/jsopcode.tbl
|
||||
|
||||
.PHONY: install
|
||||
|
|
|
@ -1729,6 +1729,8 @@ mips-sony-newsos*)
|
|||
AC_DEFINE(OPENBSD)
|
||||
AC_DEFINE(HAVE_BSD_FLOCK)
|
||||
AC_DEFINE(HAVE_SOCKLEN_T)
|
||||
AC_DEFINE(_PR_HAVE_GETPROTO_R)
|
||||
AC_DEFINE(_PR_HAVE_GETPROTO_R_INT)
|
||||
CFLAGS="$CFLAGS -ansi -Wall"
|
||||
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
||||
DLL_SUFFIX=so.1.0
|
||||
|
|
|
@ -80,7 +80,9 @@ dns_parse_a(dnscc_t *qdn, dnscc_t *pkt, dnscc_t *cur, dnscc_t *end,
|
|||
int
|
||||
dns_parse_a4(dnscc_t *qdn, dnscc_t *pkt, dnscc_t *cur, dnscc_t *end,
|
||||
void **result) {
|
||||
#ifndef __OpenBSD__ /* Openbsd likes to patch compilers to bitch about stupid things */
|
||||
assert(sizeof(struct in_addr) == 4);
|
||||
#endif
|
||||
assert(dns_get16(cur+2) == DNS_C_IN && dns_get16(cur+0) == DNS_T_A);
|
||||
return dns_parse_a(qdn, pkt, cur, end, result, 4);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue