$NetBSD: patch-ag,v 1.1.1.1 2012/05/02 04:43:11 agc Exp $ portability patches --- flutelib/sender.c 2011/12/21 18:58:00 1.1 +++ flutelib/sender.c 2011/12/21 19:01:17 @@ -31,6 +31,8 @@ */ #include +#include +#include #include #include #include @@ -197,6 +199,8 @@ #ifdef _MSC_VER struct __stat64 file_stats; +#elif (defined(BSD) && BSD >= 199506) + struct stat file_stats; #else struct stat64 file_stats; #endif @@ -217,6 +221,8 @@ #ifdef _MSC_VER if(_stat64(tx_file, &file_stats) == -1) { +#elif (defined(BSD) && BSD >= 199506) + if(stat(tx_file, &file_stats) == -1) { #else if(stat64(tx_file, &file_stats) == -1) { #endif @@ -258,6 +264,8 @@ /* File to send */ #ifdef _MSC_VER if((fp = fopen(tx_file, "rb")) == NULL) { +#elif (defined(BSD) && BSD >= 199506) + if((fp = fopen(tx_file, "rb")) == NULL) { #else if((fp = fopen64(tx_file, "rb")) == NULL) { #endif