#if __i386__
# define __NR_checkpoint 334
-#else
-# error "Architecture not supported"
-#endif
static inline long sys_checkpoint(pid_t pid, int fd, unsigned long flags)
{
return syscall(__NR_checkpoint, pid, fd, flags);
}
+#else
+# warning "Architecture not supported for checkpoint"
+static inline long sys_checkpoint(pid_t pid, int fd, unsigned long flags)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+#endif
int lxc_checkpoint(const char *name, int cfd, unsigned long flags)
{
#if __i386__
# define __NR_restart 335
-#else
-# error "Architecture not supported"
-#endif
static inline long sys_restart(pid_t pid, int fd, unsigned long flags)
{
return syscall(__NR_restart, pid, fd, flags);
}
+#else
+static inline long sys_restart(pid_t pid, int fd, unsigned long flags)
+{
+ errno = ENOSYS;
+ return -1;
+}
+# warning "Architecture not supported for restart syscall"
+#endif
int lxc_restart(const char *name, int cfd, unsigned long flags)
{