Changeset 55cb6b in git for libpolys/polys/mod_raw.cc


Ignore:
Timestamp:
Apr 10, 2013, 4:04:09 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
ccae2f26143f71606cceb669458d60a2c39c4654
Parents:
c60380d927be780ce0fe437b14c03e70f0df8f5984299e1e1d2b92c5e28fc52391cc529f8eb8ade7
Message:
Merge pull request #317 from mmklee/factory_flint_built

fix: include problems when compiling without NTL but with FLINT
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/mod_raw.cc

    r84299e r55cb6b  
    1616#include <ctype.h>
    1717#include <sys/stat.h>
     18#include <errno.h>
    1819
    1920
     
    3940char* si_bultin_libs[]={ SI_FOREACH_BUILTIN(SI_BUILTIN_LIBSTR)  NULL };
    4041
    41 #undef SI_BUILTIN_LIBSTR 
     42#undef SI_BUILTIN_LIBSTR
    4243
    4344lib_types type_of_LIB(char *newlib, char *libnamebuf)
     
    4546  const unsigned char mach_o[]={0xfe,0xed,0xfa,0xce,0};
    4647  const unsigned char mach_O[]={0xce,0xfa,0xed,0xfe,0};
    47    
     48
    4849  const unsigned char mach_o64[]={0xfe,0xed,0xfa,0xcf,0};
    4950  const unsigned char mach_O64[]={0xcf,0xfa,0xed,0xfe,0};
    50    
     51
    5152  int i=0;
    5253  while(si_bultin_libs[i]!=NULL)
     
    6263  struct stat sb;
    6364  int nbytes = 0;
    64   // int ret;
     65  int ret;
    6566  lib_types LT=LT_NONE;
    6667
    6768  FILE * fp = feFopen( newlib, "r", libnamebuf, FALSE );
    68   /*ret =*/ (void) stat(libnamebuf, &sb);
     69
     70  do
     71  {
     72    ret = stat(libnamebuf, &sb);
     73  } while((ret < 0) and (errno == EINTR));
    6974
    7075  if (fp==NULL)
Note: See TracChangeset for help on using the changeset viewer.