wok diff syslinux/stuff/iso2exe/libdos.h @ rev 20632

linld: 32 bits lseeks for tazboot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 05 17:23:23 2019 +0100 (2019-01-05)
parents 3e7ad70145ce
children
line diff
     1.1 --- a/syslinux/stuff/iso2exe/libdos.h	Wed Sep 17 11:38:34 2014 +0200
     1.2 +++ b/syslinux/stuff/iso2exe/libdos.h	Sat Jan 05 17:23:23 2019 +0100
     1.3 @@ -9,10 +9,18 @@
     1.4  extern void dosshutdown(void);
     1.5  extern int versiondos;
     1.6  extern int dosversion(void);
     1.7 +extern void copycmdline(char store[]);
     1.8  # else
     1.9  #define progname() (argv[0])
    1.10  #define chdirname(x) chdir(dirname(x))
    1.11  #define dosshutdown()
    1.12  #define dosversion() (0)
    1.13 +#define copycmdline(x) { \
    1.14 +	int n; \
    1.15 +	char *s, *p; \
    1.16 +	for (n = 1, s = x; n < argc; n++, *s++ = ' ') \
    1.17 +		for (p = argv[n]; *p; *s++ = *p++); \
    1.18 +	*s = 0; \
    1.19 +}
    1.20  # endif
    1.21  #endif