@staticmethod
def _patch_for_ios_system(orig_file, patch_file):
    """ iOS doesn't have system() and the POSIX module uses hard-coded
        configurations rather than the normal configure by introspection
        process.
        """
    for line in orig_file:
        minimal = line.strip().replace(' ', '')
        if minimal != '#defineHAVE_SYSTEM1':
            patch_file.write(line)
