libcomps icon indicating copy to clipboard operation
libcomps copied to clipboard

FNM_CASEFOLD flag is not supported in AIX

Open sumitradawn opened this issue 5 months ago • 0 comments

Hello Community members,

In AIX it seems fnmatch() function doesn't have FNM_CASEFOLD flag. https://www.ibm.com/docs/en/aix/7.2?topic=f-fnmatch-subroutine

Hence, if one try to compile libcomps with FNM_CASEFOLD flag enabled then we can see below compilation error.


error: 'FNM_CASEFOLD' undeclared (first use in this function)
 1107 |     PyModule_AddIntConstant(m, "MATCH_IGNORECASE", FNM_CASEFOLD);
      |                                                    ^~~~~~~~~~~~

We can pass 0 value instead of passing FNM_CASEFOLD to resolve the compilation error.

Please have a look into the attached patch and provide your comments/suggestions. libcomps-0.1.21-remove-FNM_CASEFOLD.patch

sumitradawn avatar Sep 11 '24 13:09 sumitradawn