瀏覽代碼

fixed compilation error on i386 linux by moving sandbox_cfg_t definition

Cristian Toader 10 年之前
父節點
當前提交
3802cae959
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/common/sandbox.h

+ 2 - 3
src/common/sandbox.h

@@ -85,6 +85,8 @@ struct sandbox_cfg_elem {
   /** Next element of the configuration*/
   struct sandbox_cfg_elem *next;
 };
+/** Typedef to structure used to manage a sandbox configuration. */
+typedef struct sandbox_cfg_elem sandbox_cfg_t;
 
 /**
  * Structure used for keeping a linked list of getaddrinfo pre-recorded
@@ -132,9 +134,6 @@ typedef struct {
 
 #endif // USE_LIBSECCOMP
 
-/** Typedef to structure used to manage a sandbox configuration. */
-typedef struct sandbox_cfg_elem sandbox_cfg_t;
-
 #ifdef USE_LIBSECCOMP
 /** Pre-calls getaddrinfo in order to pre-record result. */
 int sandbox_add_addrinfo(const char *addr);