]> git.ozlabs.org Git - ccan/blobdiff - ccan/alloc/_info.c
Stephen: "It's portaudio, not libvorbis that needs version >= 19."
[ccan] / ccan / alloc / _info.c
index 03e20afc2687c57f65bff6f9b83075499b8a0dd8..9b00284f9e878c387c637e0bd4ea6d2092a9329e 100644 (file)
  *     #include <unistd.h>
  *     #include <sys/types.h>
  *     #include <err.h>
- *     #include "alloc/alloc.h"
+ *     #include <sys/stat.h>
+ *     #include <fcntl.h>
+ *     #include <string.h>
+ *     #include <ccan/alloc/alloc.h>
  *
  *     static void usage(const char *name)
  *     {
  *             errx(1, "Usage: %s --create <mapfile>\n"
  *                  " %s --check <mapfile>\n"
  *                  " %s --alloc <mapfile>\n"
- *                  " %s --free=<offset> <mapfile>\n", name, name, name);
+ *                  " %s --free=<offset> <mapfile>\n", name, name, name, name);
  *     }
  *
  *     // Create a memory mapped file, and allocate from within it
@@ -88,6 +91,8 @@
  *             }
  *             return 0;
  *     }
+ *
+ * Licence: LGPL (2 or any later version)
  */
 int main(int argc, char *argv[])
 {