[Samba] Samba compilation problems in samba-3.4.15/lib/tevent/tevent.h
Jaroslav Fojtik
jafojtik at seznam.cz
Mon Dec 5 00:30:55 MST 2011
Dears,
The original code that does not compile:
int tevent_set_debug(struct tevent_context *ev,
void (*debug)(void *context,
enum tevent_debug_level level,
const char *fmt,
va_list ap) PRINTF_ATTRIBUTE(3,0),
void *context);
I do not know what is a purpose of PRINTF_ATTRIBUTE
Proposed workaround, that gets compiled:
int tevent_set_debug(struct tevent_context *ev,
void (*debug)(void *context,
enum tevent_debug_level level,
const char *fmt,
va_list ap),
void *context);
Proposed workaround hint #2:
#ifndef PRINTF_ATTRIBUTE
#define PRINTF_ATTRIBUTE(x,y)
#endif
best regards
Jara
More information about the samba
mailing list