summaryrefslogtreecommitdiff
path: root/misc/amanda26-client/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/amanda26-client/files')
-rw-r--r--misc/amanda26-client/files/patch-ae18
-rw-r--r--misc/amanda26-client/files/patch-af68
2 files changed, 86 insertions, 0 deletions
diff --git a/misc/amanda26-client/files/patch-ae b/misc/amanda26-client/files/patch-ae
new file mode 100644
index 000000000000..62ea9e28e154
--- /dev/null
+++ b/misc/amanda26-client/files/patch-ae
@@ -0,0 +1,18 @@
+--- config/config.h.in Thu Aug 27 11:43:52 1998
++++ config/config.h.in Sun Sep 6 11:38:27 1998
+@@ -1,4 +1,4 @@
+-/* config/config.h.in. Generated automatically from configure.in by autoheader. */
++/* config/config.h.in. Generated automatically from ../configure.in by autoheader. */
+ #ifndef _CONFIG_H
+ #define _CONFIG_H
+
+@@ -360,6 +360,9 @@
+
+ /* Define if you have the <arpa/inet.h> header file. */
+ #undef HAVE_ARPA_INET_H
++
++/* Define if you have the <camlib.h> header file. */
++#undef HAVE_CAMLIB_H
+
+ /* Define if you have the <chio.h> header file. */
+ #undef HAVE_CHIO_H
diff --git a/misc/amanda26-client/files/patch-af b/misc/amanda26-client/files/patch-af
new file mode 100644
index 000000000000..272d5133ca48
--- /dev/null
+++ b/misc/amanda26-client/files/patch-af
@@ -0,0 +1,68 @@
+--- changer-src/scsi-chio.c Tue Jul 7 21:04:04 1998
++++ changer-src/scsi-chio.c Sat Sep 12 16:11:21 1998
+@@ -114,6 +114,38 @@
+ }
+
+
++#if defined(__FreeBSD__) && defined(HAVE_CAMLIB_H)
++#warning "CHIO TAPE CHANGER FUNCTIONS UNIMPLEMENTED FOR FREEBSD CAM"
++#warning "Code will work fine if you aren't running a changer."
++int isempty(int fd, int slot)
++{
++struct changer_element_status ces;
++int i,rc;
++int type=CHET_ST;
++
++return 0;
++}
++
++int find_empty(int fd)
++{
++struct changer_element_status ces;
++int i,rc;
++int type=CHET_ST;
++
++return 0;
++}
++
++int drive_loaded(int fd, int drivenum)
++{
++struct changer_element_status ces;
++int i,rc;
++int type=CHET_DT;
++
++return 0;
++}
++
++#else
++
+ /*
+ * this routine checks a specified slot to see if it is empty
+ */
+@@ -141,6 +173,8 @@
+ return !i;
+ }
+
++
++
+ /*
+ * find the first empty slot
+ */
+@@ -169,6 +203,8 @@
+ return i;
+ }
+
++
++
+ /*
+ * returns one if there is a tape loaded in the drive
+ */
+@@ -195,7 +231,7 @@
+ free(ces.ces_data);
+ return i;
+ }
+-
++#endif
+
+ /*
+ * unloads the drive, putting the tape in the specified slot