Ignore:
Timestamp:
Nov 1, 2005 4:42:51 PM (17 years ago)
Author:
bennylp
Message:

Added suppor /and fix things for SunOS port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/src/pj/os_core_linux_kernel.c

    r1 r2  
    253253 
    254254    /* Initialize and set the thread entry. */ 
    255     pj_memset(desc, 0, sizeof(pj_thread_desc)); 
     255    pj_memset(desc, 0, sizeof(struct pj_thread_t)); 
    256256 
    257257    if(cstr_thread_name && pj_strlen(&thread_name) < sizeof(thread->obj_name)-1) 
     
    288288        return rc; 
    289289 
    290     return pj_thread_register("pjlib-main", (pj_uint8_t*)&main_thread, &dummy); 
     290    return pj_thread_register("pjlib-main", (long*)&main_thread, &dummy); 
    291291} 
    292292 
     
    473473} 
    474474 
    475 PJ_DEF(void) pj_thread_local_set(long index, void *value) 
     475PJ_DEF(pj_status_t) pj_thread_local_set(long index, void *value) 
    476476{ 
    477477    pj_assert(index >= 0 && index < MAX_TLS_ID); 
    478478    tls_values[index] = value; 
     479    return PJ_SUCCESS; 
    479480} 
    480481 
Note: See TracChangeset for help on using the changeset viewer.