moved declarations of general functions from vserver-internal.h into
[util-vserver.git] / util-vserver / tests / getctx.c
index 68d3a55..2184481 100644 (file)
 #  include <config.h>
 #endif
 
+#include "compat.h"
 #include "vserver.h"
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 int main(int argc, char *argv[])
 {
-  if (argc==1) printf("%i\n", getcctx());
-  else         printf("%i\n", getctx(atoi(argv[1])));
+  if (argc==1) printf("%i\n", vc_X_getcctx());
+  else         printf("%i\n", vc_X_getctx(atoi(argv[1])));
 
   return 0;
 }