Changeset 3a85d03d in rtems


Ignore:
Timestamp:
01/28/98 15:39:30 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b4767da
Parents:
16fc1951
Message:

Change to remove warning on glibc2 systems per Ralf Corsepius's
suggestion.

Files:
2 edited

Legend:

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

    r16fc1951 r3a85d03d  
    984984        help.val = 1;
    985985        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    986 #elif defined(hpux) || defined(__linux__)
     986#elif defined(__linux__)
     987        union semun help;
     988
     989        help.val = 1;
     990        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
     991#elif defined(hpux)
    987992        status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
    988993#else
  • cpukit/score/cpu/unix/cpu.c

    r16fc1951 r3a85d03d  
    984984        help.val = 1;
    985985        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
    986 #elif defined(hpux) || defined(__linux__)
     986#elif defined(__linux__)
     987        union semun help;
     988
     989        help.val = 1;
     990        status = semctl( _CPU_SHM_Semid, i, SETVAL, help );
     991#elif defined(hpux)
    987992        status = semctl( _CPU_SHM_Semid, i, SETVAL, 1 );
    988993#else
Note: See TracChangeset for help on using the changeset viewer.