/* Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

static MP_INLINE U32 mpxs_APR__OS_current_thread_id(pTHX)
{
#if APR_HAS_THREADS
    return (U32)apr_os_thread_current();
#else
    return 0;
#endif
}

/* Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

static MP_INLINE unsigned long mpxs_APR__OS_current_thread_id(pTHX)
{
#if APR_HAS_THREADS
    return (unsigned long)apr_os_thread_current();
#else
    return 0;
#endif
}

Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.
Fix on fbsd amd64 where U32 is 4 bytes and pthread_t is 8.

 xs/APR/OS/APR__OS.h: In function 'mpxs_APR__OS_current_thread_id':
 xs/APR/OS/APR__OS.h:20: warning: cast from pointer to integer of different size

Consistently cast this to an unsigned long.



git-svn-id: b4be4a41b2a3352907de631eb6da1671a2f7b614@983068 13f79535-47bb-0310-9956-ffa450edef68
