alloc: fix missing header in compilation of example.
[ccan] / ccan / alloc / _info
index f7f77eba18e59f7c7b309a0ef03a4ce892fe03ab..6b0fef928a67f8066c42a06c812b5beda14535dd 100644 (file)
@@ -23,6 +23,7 @@
  *     #include <sys/stat.h>
  *     #include <fcntl.h>
  *     #include <string.h>
+ *     #include <stdlib.h>
  *     #include <ccan/alloc/alloc.h>
  *
  *     static void usage(const char *name)
@@ -92,7 +93,8 @@
  *             return 0;
  *     }
  *
- * Licence: LGPL (2 or any later version)
+ * License: LGPL (2 or any later version)
+ * Author: Rusty Russell <rusty@rustcorp.com.au>
  */
 int main(int argc, char *argv[])
 {
@@ -102,6 +104,8 @@ int main(int argc, char *argv[])
        if (strcmp(argv[1], "depends") == 0) {
                printf("ccan/alignof\n");
                printf("ccan/build_assert\n");
+               printf("ccan/compiler\n");
+               printf("ccan/ilog\n");
                printf("ccan/likely\n");
                printf("ccan/short_types\n");
                return 0;