GNOME Bugzilla – Bug 162276
[build] gstregistry.h and gstxmlregistry.c don't build with mingw
Last modified: 2005-01-05 11:15:51 UTC
When built with mingw, these files ask for S_IRGRP, S_IXGRP, S_IROTH and S_IXOTH, which are not defined in mingw in gstxmlregistry.c, line 322, it suffices to replace #ifdef _MSC_VER by #ifdef _WIN32 and in gstregistrery.h, line 39, replace #define REGISTRY_DIR_PERMS (S_ISGID | \ S_IRUSR | S_IWUSR | S_IXUSR | \ S_IRGRP | S_IXGRP | \ S_IROTH | S_IXOTH) by #if defined(_WIN32) && defined(__MINGW32__) #define REGISTRY_DIR_PERMS (S_ISGID | \ S_IRUSR | S_IWUSR | S_IXUSR) #else #define REGISTRY_DIR_PERMS (S_ISGID | \ S_IRUSR | S_IWUSR | S_IXUSR | \ S_IRGRP | S_IXGRP | \ S_IROTH | S_IXOTH) #endif the same fix has to be done for REGISTRY_FILE_PERMS (line 44)
could you provide this in the form of a "diff -u" patch please ?
Created attachment 35402 [details] [review] proposed patch for gstregistrery.h
Created attachment 35403 [details] [review] proposed patch for gstxmlregistry.c
Got it, thanks.