Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112083704
D24209.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24209.diff
View Options
Index: include/protocols/dumprestore.h
===================================================================
--- include/protocols/dumprestore.h
+++ include/protocols/dumprestore.h
@@ -76,7 +76,11 @@
*/
typedef uint32_t dump_ino_t;
-union u_spcl {
+/*
+ * The instance of union u_spcl declared here is explicitly not defined in any
+ * library; your application including this header must define it as needed.
+ */
+extern union u_spcl {
char dummy[TP_BSIZE];
struct s_spcl {
int32_t c_type; /* record type (see below) */
Index: sbin/dump/tape.c
===================================================================
--- sbin/dump/tape.c
+++ sbin/dump/tape.c
@@ -72,6 +72,8 @@
char *nexttape;
FILE *popenfp = NULL;
+union u_spcl u_spcl;
+
static int atomic(ssize_t (*)(), int, char *, int);
static void doslave(int, int);
static void enslave(void);
Index: sbin/restore/tape.c
===================================================================
--- sbin/restore/tape.c
+++ sbin/restore/tape.c
@@ -94,6 +94,8 @@
static char lnkbuf[MAXPATHLEN + 1];
static int pathlen;
+union u_spcl u_spcl;
+
int Bcvt; /* Swap Bytes */
int oldinofmt; /* FreeBSD 1 inode format needs cvt */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 2:11 PM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17136790
Default Alt Text
D24209.diff (1 KB)
Attached To
Mode
D24209: dumprestore: extern the instance of union u_spcl
Attached
Detach File
Event Timeline
Log In to Comment