Changeset 05b917 in git


Ignore:
Timestamp:
May 24, 2011, 1:58:48 AM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
11837bca7c8687cd06debeb9a0100b63423287b1
Parents:
e0f4de302feaeed59ca7e6d186663ee351f715cd
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-24 01:58:48+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:50+01:00
Message:
FIX: enable the search for dynamic modules in SEARCH_PATH and load them
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/templates/mod_raw.cc

    re0f4de r05b917  
    3939{
    4040  const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0};
    41   const unsigned char mach_o_module[]={0xce,0xfa,0xed,0xfe,0};
     41  const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0};
    4242  char        buf[BYTES_TO_CHECK+1];        /* one extra for terminating '\0' */
    4343  struct stat sb;
     
    7676  }
    7777
    78   if( (strncmp(buf, (const char *)mach_o, 4)==0)) /* generic Mach-O module */
     78  if( (strncmp(buf, (const char *)mach_o, 4)==0) || (strncmp(buf, (const char *)mach_O, 4)==0)) /* generic Mach-O module */
    7979  {
    8080    LT = LT_MACH_O;
     
    147147    omFreeSize((ADDRESS)binary_name_so, binary_name_so_length * sizeof(char) );
    148148
    149     if( type == LT_ELF || type == LT_HPUX || type == LT_MACH_O )
     149    if( type != LT_SINGULAR && type != LT_NONE && type != LT_NOTFOUND )
    150150      handle = dynl_open(pp);
    151151
Note: See TracChangeset for help on using the changeset viewer.