Commit 26b9bcab authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Was using the wrong define for the CUPS soname.

parent 64eff97f
......@@ -41,8 +41,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
#ifdef HAVE_CUPS_CUPS_H
#include <cups/cups.h>
#ifndef CUPS_SONAME
#define CUPS_SONAME "libcups.so"
#ifndef SONAME_LIBCUPS
#define SONAME_LIBCUPS "libcups.so"
#endif
static void *cupshandle = NULL;
......@@ -139,7 +139,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
#ifdef HAVE_CUPS_CUPS_H
/* dynamically load CUPS if not yet loaded */
if (!cupshandle) {
cupshandle = wine_dlopen(CUPS_SONAME, RTLD_NOW, NULL, 0);
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0);
if (!cupshandle) cupshandle = (void*)-1;
}
#endif
......
......@@ -32,8 +32,8 @@
#include <stddef.h>
#ifdef HAVE_CUPS_CUPS_H
# include <cups/cups.h>
# ifndef CUPS_SONAME
# define CUPS_SONAME "libcups.so"
# ifndef SONAME_LIBCUPS
# define SONAME_LIBCUPS "libcups.so"
# endif
#endif
......@@ -157,7 +157,7 @@ CUPS_LoadPrinters(void) {
PWSTR pwstrNameW;
HKEY hkeyPrinters, hkeyPrinter;
cupshandle = wine_dlopen(CUPS_SONAME, RTLD_NOW, NULL, 0);
cupshandle = wine_dlopen(SONAME_LIBCUPS, RTLD_NOW, NULL, 0);
if (!cupshandle)
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment