Remove unneeded system header includes.

All of these headers are already included in globals.h

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8325 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Update patterns in .gitignore

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8326 4b0bc96b-bc66-0410-9d44-ebda105a78c1
config: Fix WITH_CARDREADER dependencies.

Fixes ticket #3149.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8327 4b0bc96b-bc66-0410-9d44-ebda105a78c1
config: Use real temporary files for GUI config.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8328 4b0bc96b-bc66-0410-9d44-ebda105a78c1
build: Prevent LD from leaving temp files in /tmp.

The LD output is saved into variable and then processed, because if
the output is piped directly into another command LD creates 4 files
in your /tmp directory and doesn't delete them.

Also remove linker version in info output, its useless and again
there was a problem with the temp files.

Because of this LD behaviour each running of `make` left you with
at least 8 files in your /tmp directory which was highly annoying.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8329 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Fix T0 and T14 timings they were wait_etu times too high
  On card transmission error this would result in very long timeouts / black screen 


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8330 4b0bc96b-bc66-0410-9d44-ebda105a78c1
- Revert commit 7892 it breaks infinity usb readers
Tnx to ryszardzonk for research and testing


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8331 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Add mechanism to send messages to clients asynchronous via the joblist (currently used for cccam sharing) to prevent lock failures on network timeouts.
WebIf: Small fix for #3151: It makes no sense to define a template to be dependent on WebIf.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8332 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Prevent warning in oscam-work.c

The warning was:
  oscam-work.c: In function 'work_thread':
  oscam-work.c:191:4: warning: enumeration value 'ACTION_CLIENT_SEND_MSG' not handled in switch [-Wswitch]

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8333 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Timing fix for overclocked T14 tnx to MadMaxx for reporting and testing


git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8334 4b0bc96b-bc66-0410-9d44-ebda105a78c1
cccshare: Stop using pthread_cancel() to kill share_updater thread.

pthread_cancel() is dangerous function to use and it is not
supported under Android.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8335 4b0bc96b-bc66-0410-9d44-ebda105a78c1
gc: Stop using pthread_cancel() to kill gc thread.

pthread_cancel() is dangerous function to use and it is not
supported under Android.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8336 4b0bc96b-bc66-0410-9d44-ebda105a78c1
dvbapi-stapi: Stop using pthread_cancel() to kill stapi_read threads.

pthread_cancel() is dangerous function to use and it is not
supported under Android /not that this makes sense for stapi/.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8337 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Fix couple of warnings seen in Android build.

On Android's libc (bionic) struct stat.st_mtime is defined as
unsigned long not time_t and this generates warnings.

The other fixes are related to casting of struct sockaddr in
listen() and bind() calls.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8338 4b0bc96b-bc66-0410-9d44-ebda105a78c1
Add support for building OSCam with Android NDK.

The fixes that are applied are:
 - For some reason Android NDK does not ship linux/serial.h
   Copy the needed headers in extapi/linux/
 - sys/shm.h does not exists but we are not using it anyway.
 - tcdrain() is not implemented in Bionic, provide replacement.
 - in_port_t is not defined in Bionic, define it.
 - getpwuid_r() is not implemented but using getpwuid() is fine
   because we are not calling this function from multiple threads.

After these fixes you can build OSCam using Android NDK following
these simple instructions:

1. Download the NDK from https://developer.android.com/tools/sdk/ndk/index.html
2. Unarchive the NDK.
3. Go to NDK directory and run:
   `build/tools/make-standalone-toolchain.sh --install-dir=/tmp/android`
4. Go to OSCam source directory and run:
   `make LIB_PTHREAD= CROSS=/tmp/android/bin/arm-linux-androideabi-`

Voila, you have built OSCam binary for Android.

The Android toolchain(s) does not have support out of the box for
openssl, libusb or PCSC. If you want to use them just install them
like you do in any other toolchain.

LIB_PTHREAD= must be used as `make` parameter because on Android
there is no need to link with pthread.

If you turn on IPV6SUPPORT there are some warnings which you can
just ignore.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8339 4b0bc96b-bc66-0410-9d44-ebda105a78c1
build: Use -pipe compiler parameter.

On my machine this speeds up the build ~5%.

git-svn-id: http://streamboard.de.vu/svn/oscam/trunk@8340 4b0bc96b-bc66-0410-9d44-ebda105a78c1
freebsd