Index: lang/tcc/files/patch-configure =================================================================== --- lang/tcc/files/patch-configure (revision 0) +++ lang/tcc/files/patch-configure (working copy) @@ -0,0 +1,30 @@ +--- configure.orig 2013-02-15 14:24:00 UTC ++++ configure +@@ -45,6 +45,7 @@ tcc_crtprefix="" + tcc_elfinterp="" + tcc_lddir= + confvars= ++define_va_list="" + + cpu=`uname -m` + +@@ -332,6 +333,9 @@ if test -z "$cross_prefix" ; then + + fi + fi ++ if ! $cc -o $CONFTEST -c $source_path/va_list.c 2>/dev/null ; then ++ define_va_list="yes" ++ fi + else + # if cross compiling, cannot launch a program, so make a static guess + case $cpu in +@@ -483,6 +487,9 @@ if test "$have_selinux" = "yes" ; then + echo "#define HAVE_SELINUX" >> $TMPH + echo "HAVE_SELINUX=yes" >> config.mak + fi ++if test "$define_va_list" = "yes" ; then ++ echo "#define DEFINE_VA_LIST" >> $TMPH ++fi + + version=`head $source_path/VERSION` + echo "VERSION=$version" >>config.mak Property changes on: lang/tcc/files/patch-configure ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: lang/tcc/files/patch-libtcc.c =================================================================== --- lang/tcc/files/patch-libtcc.c (revision 0) +++ lang/tcc/files/patch-libtcc.c (working copy) @@ -0,0 +1,28 @@ +--- libtcc.c.orig 2013-02-15 14:24:00 UTC ++++ libtcc.c +@@ -931,7 +931,11 @@ LIBTCCAPI TCCState *tcc_new(void) + tcc_define_symbol(s, "__i386", NULL); + tcc_define_symbol(s, "i386", NULL); + #elif defined(TCC_TARGET_X86_64) ++# if defined(__FreeBSD__) ++ tcc_define_symbol(s, "__amd64__", NULL); ++# endif + tcc_define_symbol(s, "__x86_64__", NULL); ++ tcc_define_symbol(s, "__LP64__", NULL); + #elif defined(TCC_TARGET_ARM) + tcc_define_symbol(s, "__ARM_ARCH_4__", NULL); + tcc_define_symbol(s, "__arm_elf__", NULL); +@@ -957,6 +961,13 @@ LIBTCCAPI TCCState *tcc_new(void) + tcc_define_symbol(s, "__linux", NULL); + # endif + # if defined(__FreeBSD__) ++# if defined(DEFINE_VA_LIST) ++# if defined(TCC_TARGET_X86_64) ++ tcc_define_symbol(s, "__va_list", "struct { long pad[3]; }"); ++# else ++ tcc_define_symbol(s, "__va_list", "char *"); ++# endif ++# endif + # define str(s) #s + tcc_define_symbol(s, "__FreeBSD__", str( __FreeBSD__)); + # undef str Property changes on: lang/tcc/files/patch-libtcc.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: lang/tcc/files/patch-va__list.c =================================================================== --- lang/tcc/files/patch-va__list.c (revision 0) +++ lang/tcc/files/patch-va__list.c (working copy) @@ -0,0 +1,9 @@ +--- va_list.c.orig 2015-08-04 21:20:18 UTC ++++ va_list.c +@@ -0,0 +1,6 @@ ++#ifdef __FreeBSD__ ++#undef __GNUC__ ++#undef __GNUC_MINOR__ ++#include ++void foo(__va_list); ++#endif Property changes on: lang/tcc/files/patch-va__list.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property