Skip to content

Instantly share code, notes, and snippets.

@vault
Created August 7, 2012 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vault/3281505 to your computer and use it in GitHub Desktop.
Save vault/3281505 to your computer and use it in GitHub Desktop.
Patch for Slurm on Linux 3.4
diff -aur a/src/common/jobacct_common.c b/src/common/jobacct_common.c
--- a/src/common/jobacct_common.c 2012-08-01 14:23:56.000000000 -0400
+++ b/src/common/jobacct_common.c 2012-08-06 23:48:58.400888618 -0400
@@ -39,9 +39,7 @@
* Copyright (C) 2002 The Regents of the University of California.
\*****************************************************************************/
-#if defined(__NetBSD__)
#include <sys/resource.h>
-#endif
#include "src/common/jobacct_common.h"
Only in b/src/common: .jobacct_common.c.un~
diff -aur a/src/plugins/accounting_storage/filetxt/filetxt_jobacct_process.c b/src/plugins/accounting_storage/filetxt/filetxt_jobacct_process.c
--- a/src/plugins/accounting_storage/filetxt/filetxt_jobacct_process.c 2012-08-01 14:23:56.000000000 -0400
+++ b/src/plugins/accounting_storage/filetxt/filetxt_jobacct_process.c 2012-08-06 23:48:39.414229223 -0400
@@ -40,9 +40,7 @@
* This file is patterned after jobcomp_linux.c, written by Morris Jette and
* Copyright (C) 2002 The Regents of the University of California.
\*****************************************************************************/
-#if defined(__NetBSD__)
#include <sys/resource.h> /* for struct rusage */
-#endif
#include <stdlib.h>
#include <ctype.h>
#include <sys/stat.h>
Only in b/src/plugins/accounting_storage/filetxt: .filetxt_jobacct_process.c.un~
diff -aur a/src/salloc/salloc.c b/src/salloc/salloc.c
--- a/src/salloc/salloc.c 2012-08-01 14:23:56.000000000 -0400
+++ b/src/salloc/salloc.c 2012-08-06 23:48:25.297567581 -0400
@@ -42,9 +42,7 @@
# include "config.h"
#endif
-#if defined(__NetBSD__)
#include <sys/resource.h> /* for struct rlimit */
-#endif
#include <dirent.h>
#include <fcntl.h>
#include <pwd.h>
Only in b/src/salloc: .salloc.c.un~
diff -aur a/src/sbatch/sbatch.c b/src/sbatch/sbatch.c
--- a/src/sbatch/sbatch.c 2012-08-01 14:23:56.000000000 -0400
+++ b/src/sbatch/sbatch.c 2012-08-06 23:48:09.084239615 -0400
@@ -41,9 +41,7 @@
# include "config.h"
#endif
-#if defined(__NetBSD__)
#include <sys/resource.h> /* for RLIMIT_NOFILE */
-#endif
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
Only in b/src/sbatch: .sbatch.c.un~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment