Patches from pkgsrc-WIP
This commit is contained in:
committed by
Jon Trulson
parent
341494d91c
commit
1fdcd4c93d
@@ -105,7 +105,7 @@ SysErrorMsg(
|
||||
int n
|
||||
)
|
||||
{
|
||||
#if !defined(linux) && !defined(__FreeBSD__) && !defined(__NetBSD__)
|
||||
#if !defined(linux) && !defined(CSRG_BASED)
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
#endif
|
||||
|
||||
@@ -870,7 +870,7 @@ void LocalPrintJobs(char *printer, char **return_job_list, int *return_n_jobs)
|
||||
#if defined(__osf__)
|
||||
sprintf(buf, "LANG=C lpstat -o%s", printer);
|
||||
#endif
|
||||
#if defined(linux) || defined(__OpenBSD__)
|
||||
#if defined(linux) || defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
snprintf(buf, 1000, "LANG=C lpq -P%s", printer);
|
||||
#elif defined(__FreeBSD__)
|
||||
snprintf(buf, 1000, "LANG=C /usr/local/bin/lpq -P%s", printer);
|
||||
|
||||
Reference in New Issue
Block a user