Navigation


Changeset 810:85b3d7c8bf60 in freeDiameter


Ignore:
Timestamp:
Aug 25, 2012, 4:22:41 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a few compilation errors on NetBSD -- reported by Thomas Klausner (thanks\!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/libfdproto.h

    r804 r810  
    7474#include <stdlib.h>
    7575#include <unistd.h>
     76#include <stdarg.h>
    7677
    7778#ifdef DEBUG
     
    160161 *
    161162 * PARAMETERS:
    162  *  fstr        : Stream where the text will be sent (default: stdout)
     163 *  fstr        : Stream where the text will be sent to (default: stdout)
    163164 *  format      : Same format string as in the printf function
    164165 *  va_list     : Argument list
     
    215216
    216217/* Some portability code to get nice function name in __PRETTY_FUNCTION__ */
    217 #if __STDC_VERSION__ < 199901L
     218#if (!defined( __func__)) && (__STDC_VERSION__ < 199901L)
    218219# if __GNUC__ >= 2
    219220#  define __func__ __FUNCTION__
     
    221222#  define __func__ "<unknown>"
    222223# endif /* __GNUC__ >= 2 */
    223 #endif /* __STDC_VERSION__ < 199901L */
     224#endif /*(!defined( __func__)) && (__STDC_VERSION__ < 199901L) */
    224225#ifndef __PRETTY_FUNCTION__
    225226#define __PRETTY_FUNCTION__ __func__
Note: See TracChangeset for help on using the changeset viewer.