Changeset e88bae in git


Ignore:
Timestamp:
Aug 2, 2005, 4:06:18 PM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
80d92aef1c5833116bf94ed13ea7c8d6c3acfcba
Parents:
763bf07f7e9d291dfd5cd2994d10d3c9486dcf9a
Message:
*hannes: IRIX_6 port


git-svn-id: file:///usr/local/Singular/svn/trunk@8481 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
modules/modgen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/modgen/main.cc

    r763bf07 re88bae  
    7373char* inst_dir = EXEC_PREFIX;
    7474
     75#ifdef IRIX_6
     76struct option
     77{
     78  const char *name;
     79  /* has_arg can't be an enum because some compilers complain about
     80     type mismatches in all the code that assumes it is an int.  */
     81  int has_arg;
     82  int *flag;
     83  int val;
     84};
     85#endif
    7586static struct option long_options[] =
    7687{
     
    8394  {0, 0, 0, 0}
    8495};
     96
    8597
    8698void usage(char *name)
     
    116128  unsigned long cksm;
    117129
     130#ifdef IRIX_6
     131  while( (c=getopt (argc,argv, "dmvsi:")) != -1)
     132#else
    118133  while( (c=getopt_long (argc, argv, "dmvsi:",
    119                          long_options, &option_index))>=0) {
     134                         long_options, &option_index))>=0)
     135#endif
     136 {
    120137    switch (c)
    121138    {
  • modules/modgen/makefile.cc

    r763bf07 re88bae  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: makefile.cc,v 1.21 2005-05-25 12:14:59 bricken Exp $ */
     4/* $Id: makefile.cc,v 1.22 2005-08-02 14:06:18 Singular Exp $ */
    55/*
    66* ABSTRACT: lib parsing
     
    161161/*===  Machine depend Makefile creation                                ===*/
    162162/*========================================================================*/
    163 #if defined(ix86_Linux) || defined(ix86_Linux_libc5) || defined(ix86_freebsd)|| defined(x86_64_Linux)
     163#if defined(ix86_Linux) || defined(ix86_Linux_libc5) || defined(ix86_freebsd)|| defined(x86_64_Linux) || defined(IRIX_6)
    164164void build_compile_section(
    165165  FILE *fp,
     
    242242
    243243/*========================================================================*/
    244 #  ifdef IRIX_6
    245 void build_compile_section(
    246   FILE *fp,
    247   moddefv module
    248   )
    249 {
    250   fprintf(fp, "all:\t\n");
    251   fprintf(fp, "\techo \"don't know how to build library\"\n");
    252 }
    253 #  endif /* IRIX_6 */
    254 
    255 /*========================================================================*/
    256244#  ifdef Sun3OS_4
    257245void build_compile_section(
Note: See TracChangeset for help on using the changeset viewer.