diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2005-04-21 10:24:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2005-04-21 10:24:32 +0000 |
commit | bc5c4c1a3831f9abbde427e894165f1cd7c42bc0 (patch) | |
tree | b706bf7c2f65b59f2c0dd5e56444e42113f2d017 /stringbuf.c | |
parent | 01a4d3e17d45539e97afb783118882ea12308801 (diff) | |
download | rsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.tar.gz rsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.tar.xz rsyslog-bc5c4c1a3831f9abbde427e894165f1cd7c42bc0.zip |
FreeBSD port
Diffstat (limited to 'stringbuf.c')
-rwxr-xr-x | stringbuf.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/stringbuf.c b/stringbuf.c index b9a7721d..12bb02d6 100755 --- a/stringbuf.c +++ b/stringbuf.c @@ -37,8 +37,16 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
+#ifdef __FreeBSD__ +#define BSD +#endif + + +#ifdef BSD +#include <stdlib.h> +#else #include <malloc.h>
+#endif #include <assert.h>
#include <string.h>
#include "liblogging-stub.h"
|