]> git.ozlabs.org Git - ccan/blobdiff - ccan/tcon/tcon.h
fdpass: fix complilation on FreeBSD.
[ccan] / ccan / tcon / tcon.h
index e0f84b383976c4d106e6d9fe3ee9043c449d1ed8..35d83e199b8b162a9d61a33ebb6287b0ffd7a8d6 100644 (file)
  * It evaluates to @x so you can chain it.
  */
 #define tcon_check_ptr(x, canary, expr)                                \
-       (sizeof(&(x)->_tcon[0].canary == (expr)) ? (x) : (x))
-
+       (sizeof(0 ? (expr) : &(x)->_tcon[0].canary) ? (x) : (x))
 
 /**
  * tcon_type - the type within a container (or void *)