Changeset f2545552 in rtems


Ignore:
Timestamp:
Apr 22, 1997, 7:57:02 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
e0de6ef
Parents:
e71ce071
Message:

multiprocessing fixed on linux by fixing cpu.c so correct form of
semctl was being invoked.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/cpu/unix/cpu.c

    re71ce071 rf2545552  
    2525#endif
    2626
    27 #if defined(linux)
     27#if defined(__linux__)
    2828#define MALLOC_0_RETURNS_NULL
    2929#endif
     
    874874        help.val = 1;
    875875        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    876 #endif
    877 #if defined(hpux)
     876#elif defined(hpux) || defined(__linux__)
    878877        status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
     878#else
     879#error "Not a supported unix variant"
    879880#endif
    880881
  • cpukit/score/cpu/unix/cpu.c

    re71ce071 rf2545552  
    2525#endif
    2626
    27 #if defined(linux)
     27#if defined(__linux__)
    2828#define MALLOC_0_RETURNS_NULL
    2929#endif
     
    874874        help.val = 1;
    875875        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    876 #endif
    877 #if defined(hpux)
     876#elif defined(hpux) || defined(__linux__)
    878877        status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
     878#else
     879#error "Not a supported unix variant"
    879880#endif
    880881
Note: See TracChangeset for help on using the changeset viewer.