1
1

tests: workaround for compiling with older cmocka

Этот коммит содержится в:
Aris Adamantiadis 2015-01-24 14:50:30 +01:00
родитель 940cb233ce
Коммит 2a780afc57

Просмотреть файл

@ -40,6 +40,12 @@
#include <cmocka.h>
#ifndef assert_return_code
/* hack for older versions of cmocka */
#define assert_return_code(code, errno) \
assert_true(code >= 0)
#endif /* assert_return_code */
/* Used by main to communicate with parse_opt. */
struct argument_s {
const char *pattern;