#include "swap_debug.h"
#include "daemon.h"
+#include "app_protocol.h" /* from swap-probe-devel package */
+
#include "ld_preload_probes.h"
struct lib_list_t *new_lib_inst_list = NULL;
uint32_t value;
};
-#ifndef static_assert
-#define static_assert(cond) \
+#ifndef da_static_assert
+#define da_static_assert(cond) \
char __attribute__((unused)) __static_assert[(cond) ? 1 : -1];
#endif
#define pack_int64(to, n) do { \
- static_assert(sizeof(n) == 8); \
+ da_static_assert(sizeof(n) == 8); \
*(uint64_t *)to = (n); \
to += sizeof(uint64_t); \
} while (0)
#define pack_int32(to, n) do { \
- static_assert(sizeof(n) == 4); \
+ da_static_assert(sizeof(n) == 4); \
*(uint32_t *)to = (n); \
to += sizeof(uint32_t); \
} while (0)
#define pack_int8(to, n) do { \
- static_assert(sizeof(n) == 1); \
+ da_static_assert(sizeof(n) == 1); \
*(uint8_t *)to = (n); \
to += sizeof(uint8_t); \
} while (0)